From: Max Kellermann Date: Fri, 9 Oct 2009 19:23:03 +0000 (+0200) Subject: list_window: optimize second column drawing X-Git-Tag: release-0.16~156 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb4413fc282cfa06f3efb3c1114d7402c4fa5b7d;p=ncmpc.git list_window: optimize second column drawing Paint the space with waddch() instead of waddstr(). Removed the second cursor movement, it's redundant. --- 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); } }