Fix regression in GLib message handler

This commit is contained in:
Přemysl Eric Janouch 2016-10-12 22:21:15 +02:00
parent 1f811d903e
commit a63db9d978
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 2 additions and 2 deletions

View File

@ -994,11 +994,10 @@ app_show_message (Application *self, const gchar *lines[], gsize len)
if (x < 0)
x = 0;
move (TOP_BAR_CUTOFF + i, x);
RowBuffer buf;
row_buffer_init (&buf, self);
row_buffer_append (&buf, *lines, 0);
move (TOP_BAR_CUTOFF + i, x);
row_buffer_finish (&buf, -1, 0);
lines++;
@ -1964,6 +1963,7 @@ log_handler_curses (Application *self, const gchar *message)
RowBuffer buf;
row_buffer_init (&buf, self);
row_buffer_append (&buf, message, A_REVERSE);
move (0, 0);
row_buffer_finish (&buf, COLS, A_REVERSE);
RESTORE_CURSOR