From 42c10d5d7d5ba2fde22838d594f29d2f73b3ead2 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Fri, 27 Sep 2013 18:41:31 +0000 Subject: Update dialog to 1.2-20130923. --- arrows.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'arrows.c') diff --git a/arrows.c b/arrows.c index 5e5c7231f6b9..44a90dfdcba4 100644 --- a/arrows.c +++ b/arrows.c @@ -1,5 +1,5 @@ /* - * $Id: arrows.c,v 1.50 2013/05/24 00:05:21 tom Exp $ + * $Id: arrows.c,v 1.51 2013/09/02 15:10:09 tom Exp $ * * arrows.c -- draw arrows to indicate end-of-range for lists * @@ -74,9 +74,10 @@ dlg_draw_helpline(WINDOW *win, bool decorations) int bottom; if (dialog_vars.help_line != 0 + && dialog_vars.help_line[0] != 0 && (bottom = getmaxy(win) - 1) > 0) { chtype attr = A_NORMAL; - const int *cols = dlg_index_columns(dialog_vars.help_line); + int cols = dlg_count_columns(dialog_vars.help_line); int other = decorations ? (ON_LEFT + ON_RIGHT) : 0; int avail = (getmaxx(win) - other - 2); int limit = dlg_count_real_columns(dialog_vars.help_line) + 2; @@ -86,7 +87,7 @@ dlg_draw_helpline(WINDOW *win, bool decorations) other = decorations ? ON_LEFT : 0; (void) wmove(win, bottom, other + (avail - limit) / 2); waddch(win, '['); - dlg_print_text(win, dialog_vars.help_line, cols[limit], &attr); + dlg_print_text(win, dialog_vars.help_line, cols, &attr); waddch(win, ']'); wmove(win, cur_y, cur_x); } -- cgit v1.3