aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorPaul Eggert2014-05-04 12:37:56 -0700
committerPaul Eggert2014-05-04 12:37:56 -0700
commit3e9fa60a5c99568817a12a1011b0e61cce5d3a67 (patch)
tree831a801351db662f324d0709bf1fee718eda63e9 /src/term.c
parentbbdcf64f499636ba9567e8fed8f209e06380352c (diff)
parent61febcb6e32860575316b8a539a2e9f13f70e3c2 (diff)
downloademacs-3e9fa60a5c99568817a12a1011b0e61cce5d3a67.tar.gz
emacs-3e9fa60a5c99568817a12a1011b0e61cce5d3a67.zip
Merge from emacs-24; up to 2014-05-04T21:18:30Z!eggert@cs.ucla.edu
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index c636b8cac8b..8ea3e42dae6 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3267,7 +3267,10 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
3267 3267
3268 /* Turn off the cursor. Otherwise it shows through the menu 3268 /* Turn off the cursor. Otherwise it shows through the menu
3269 panes, which is ugly. */ 3269 panes, which is ugly. */
3270 col = cursorX (tty);
3271 row = cursorY (tty);
3270 tty_hide_cursor (tty); 3272 tty_hide_cursor (tty);
3273
3271 if (buffers_num_deleted) 3274 if (buffers_num_deleted)
3272 menu->text[0][7] = ' '; 3275 menu->text[0][7] = ' ';
3273 onepane = menu->count == 1 && menu->submenu[0]; 3276 onepane = menu->count == 1 && menu->submenu[0];
@@ -3405,8 +3408,6 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
3405 col = cursorX (tty); 3408 col = cursorX (tty);
3406 row = cursorY (tty); 3409 row = cursorY (tty);
3407 } 3410 }
3408 else
3409 row = -1;
3410 3411
3411 /* Display the help-echo message for the currently-selected menu 3412 /* Display the help-echo message for the currently-selected menu
3412 item. */ 3413 item. */
@@ -3418,8 +3419,7 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
3418 /* Move the cursor to the beginning of the current menu 3419 /* Move the cursor to the beginning of the current menu
3419 item, so that screen readers and other accessibility aids 3420 item, so that screen readers and other accessibility aids
3420 know where the active region is. */ 3421 know where the active region is. */
3421 if (0 <= row) 3422 cursor_to (sf, row, col);
3422 cursor_to (sf, row, col);
3423 tty_hide_cursor (tty); 3423 tty_hide_cursor (tty);
3424 fflush (tty->output); 3424 fflush (tty->output);
3425 prev_menu_help_message = menu_help_message; 3425 prev_menu_help_message = menu_help_message;