aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.c3
-rw-r--r--vis.c3
-rw-r--r--window.c2
3 files changed, 1 insertions, 7 deletions
diff --git a/text.c b/text.c
index 2f3ea17..58ded1d 100644
--- 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
index c075dc5..a6c8aa6 100644
--- 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
index dc3e7dd..27c9d6a 100644
--- 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) {