diff options
| -rw-r--r-- | text.c | 3 | ||||
| -rw-r--r-- | vis.c | 3 | ||||
| -rw-r--r-- | window.c | 2 |
3 files changed, 1 insertions, 7 deletions
@@ -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) { @@ -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 */ @@ -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) { |
