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-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
col = cursorX (tty);
row = cursorY (tty);
}
+ else
+ row = -1;
/* Display the help-echo message for the currently-selected menu
item. */
/* 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;