1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00

Fix infloop of -nw session at exit on MS-Windows under a debugger.

src/sysdep.c (reset_sys_modes): Use cursorX, not curX, as the latter
 contains garbage on WINDOWSNT (which could potentially infloop at
 exit).
This commit is contained in:
Eli Zaretskii 2014-06-04 13:54:58 +03:00
parent d13adf6ddc
commit 6032a3e831
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2014-06-04 Eli Zaretskii <eliz@gnu.org>
* sysdep.c (reset_sys_modes): Use cursorX, not curX, as the latter
contains garbage on WINDOWSNT (which could potentially infloop at
exit).
Minimize cursor motion during TTY menu updates.
* term.c (tty_menu_display): Don't position cursor here. Instead,
pass the cursor coordinates to update_frame_with_menu.

View File

@ -1245,7 +1245,7 @@ reset_sys_modes (struct tty_display_info *tty_out)
int i;
tty_turn_off_insert (tty_out);
for (i = curX (tty_out); i < FrameCols (tty_out) - 1; i++)
for (i = cursorX (tty_out); i < FrameCols (tty_out) - 1; i++)
{
fputc (' ', tty_out->output);
}