From ebdfee53b908a7ffcf8b9f8f7f29d9c558a2f0a1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 6 Jan 2014 17:54:59 +0000 Subject: [PATCH] gui: Use proper column number in print_in_bar(). This function modifies the input window, not the status bar window. This bug is benign because both windows have the same number of columns. --- gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.c b/gui.c index 2a0174b8..aff2b1af 100644 --- a/gui.c +++ b/gui.c @@ -361,7 +361,7 @@ __printf_2_3 static void print_in_bar(int color, const char *fmt,...) xvasprintf(&msg, fmt, ap); va_end(ap); wmove(in.win, 0, 0); - align_str(in.win, msg, sb.cols, LEFT); + align_str(in.win, msg, in.cols, LEFT); free(msg); wrefresh(in.win); } -- 2.39.5