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:
parent
d13adf6ddc
commit
6032a3e831
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue