Code

list_window: optimize second column drawing
authorMax Kellermann <max@duempel.org>
Fri, 9 Oct 2009 19:23:03 +0000 (21:23 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 9 Oct 2009 19:23:03 +0000 (21:23 +0200)
Paint the space with waddch() instead of waddstr().  Removed the
second cursor movement, it's redundant.

src/list_window.c

index a7c637ae2081543cb1eafafea45bd4155f8cd555..9278bddad1575e9b29dbdc89c68b38b3eb2e90bc 100644 (file)
@@ -316,8 +316,7 @@ list_window_paint_row(WINDOW *w, unsigned y, unsigned width,
                unsigned second_column_width = utf8_width(second_column) + 1;
                if (width > second_column_width) {
                        wmove(w, y, width - second_column_width);
-                       waddstr(w, " ");
-                       wmove(w, y, width - second_column_width + 1);
+                       waddch(w, ' ');
                        waddstr(w, second_column);
                }
        }