+2014-05-01 Eli Zaretskii <eliz@gnu.org>
+
+ * term.c (tty_menu_activate): A better initialization for cursor
+ coordinates.
+
2014-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
* intervals.c: Tighten assertions.
/* Turn off the cursor. Otherwise it shows through the menu
panes, which is ugly. */
+ col = cursorX (tty);
+ row = cursorY (tty);
tty_hide_cursor (tty);
+
if (buffers_num_deleted)
menu->text[0][7] = ' ';
onepane = menu->count == 1 && menu->submenu[0];
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. */
- if (0 <= row)
- cursor_to (sf, row, col);
+ cursor_to (sf, row, col);
tty_hide_cursor (tty);
fflush (tty->output);
prev_menu_help_message = menu_help_message;