vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit b126b5d153a9f5883efa2f776f2b674c7ab99324 parent da16a65575ef67f8ac595fa78e848d405894ce6e Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 19 Sep 2014 13:51:40 +0200 Remove some TODO items Diffstat:
| M | text.c | | | 3 | --- |
| M | vis.c | | | 3 | --- |
| M | window.c | | | 2 | +- |
3 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/text.c b/text.c @@ -314,9 +314,6 @@ static void span_init(Span *span, Piece *start, Piece *end) { * adjusts the document size accordingly. */ static void span_swap(Text *txt, Span *old, Span *new) { - /* TODO use a balanced search tree to keep the pieces - instead of a doubly linked list. - */ if (old->len == 0 && new->len == 0) { return; } else if (old->len == 0) { diff --git a/vis.c b/vis.c @@ -981,14 +981,11 @@ static void switchmode_to(Mode *new_mode) { if (mode->leave) mode->leave(new_mode); mode_prev = mode; - //fprintf(stderr, "%s -> %s\n", mode_prev->name, new_mode->name); mode = new_mode; if (mode == config->mode || (mode->name && mode->name[0] == '-')) statusbar(vis->win); if (mode->enter) mode->enter(mode_prev); - // TODO display mode name somewhere? - } /** ':'-command implementations */ diff --git a/window.c b/window.c @@ -401,7 +401,7 @@ void window_draw(Win *win) { } if (sel.start <= pos && pos < sel.end) - attrs |= A_REVERSE; // TODO: make configurable + attrs |= A_REVERSE; size_t len = mbrtowc(&c.wchar, cur, rem, NULL); if (len == (size_t)-1 && errno == EILSEQ) {