Commit bc6cb3ef authored by Paul Eggert's avatar Paul Eggert
Browse files

* term.c (tty_menu_activate): Don't assume row and col are initialized.

GCC 4.9.0 warned about this, and I couldn't easily prove to my own
satisfaction that they would always be initialized.
parent 72962dd8
2014-04-30 Paul Eggert <eggert@cs.ucla.edu>
* term.c (tty_menu_activate): Don't assume row and col are initialized.
GCC 4.9.0 warned about this, and I couldn't easily prove to my own
satisfaction that they would always be initialized.
2014-04-29 Eli Zaretskii <eliz@gnu.org>
* term.c (tty_menu_display): Move the cursor to the active menu
......
......@@ -3378,6 +3378,8 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
col = cursorX (tty);
row = cursorY (tty);
}
else
row = -1;
/* Display the help-echo message for the currently-selected menu
item. */
......@@ -3389,7 +3391,8 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
/* Move the cursor to the beginning of the current menu
item, so that screen readers and other accessibility aids
know where the active region is. */
cursor_to (sf, row, col);
if (0 <= row)
cursor_to (sf, row, col);
tty_hide_cursor (tty);
fflush (tty->output);
prev_menu_help_message = menu_help_message;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment