From fb4413fc282cfa06f3efb3c1114d7402c4fa5b7d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Oct 2009 21:23:03 +0200 Subject: [PATCH] list_window: optimize second column drawing Paint the space with waddch() instead of waddstr(). Removed the second cursor movement, it's redundant. --- src/list_window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/list_window.c b/src/list_window.c index a7c637a..9278bdd 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -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); } } -- 2.30.2