Commit 6032a3e8 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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).
parent d13adf6d
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.
......
......@@ -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);
}
......
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