emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117204: Fix infloop of -nw session at exit on MS


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-24 r117204: Fix infloop of -nw session at exit on MS-Windows under a debugger.
Date: Wed, 04 Jun 2014 10:56:40 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117204
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: emacs-24
timestamp: Wed 2014-06-04 13:54:58 +0300
message:
  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).
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/sysdep.c                   sysdep.c-20091113204419-o5vbwnq5f7feedwu-448
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-06-04 09:16:46 +0000
+++ b/src/ChangeLog     2014-06-04 10:54:58 +0000
@@ -1,5 +1,9 @@
 2014-06-04  Eli Zaretskii  <address@hidden>
 
+       * 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.

=== modified file 'src/sysdep.c'
--- a/src/sysdep.c      2014-04-16 13:27:28 +0000
+++ b/src/sysdep.c      2014-06-04 10:54:58 +0000
@@ -1245,7 +1245,7 @@
       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);
         }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]