]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
gui: Use proper column number in print_in_bar().
authorAndre Noll <maan@systemlinux.org>
Mon, 6 Jan 2014 17:54:59 +0000 (17:54 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 12:04:04 +0000 (14:04 +0200)
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

diff --git a/gui.c b/gui.c
index 2a0174b8e92e7dfa9ff0c4fee7f8929b9cbb7b20..aff2b1af5bb8d7cb4e7579129a1bdd1e272cfc68 100644 (file)
--- 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);
        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);
 }
        free(msg);
        wrefresh(in.win);
 }