emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/xterm.c,v [EMACS_22_BASE]


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c,v [EMACS_22_BASE]
Date: Thu, 17 Jan 2008 15:22:43 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Jason Rumney <jasonr>   08/01/17 15:22:42

Index: xterm.c
===================================================================
RCS file: /sources/emacs/emacs/src/xterm.c,v
retrieving revision 1.943.2.12
retrieving revision 1.943.2.13
diff -u -b -r1.943.2.12 -r1.943.2.13
--- xterm.c     8 Jan 2008 04:29:38 -0000       1.943.2.12
+++ xterm.c     17 Jan 2008 15:22:42 -0000      1.943.2.13
@@ -6488,9 +6488,7 @@
                kbd_buffer_store_event_hold (&inev.ie, hold_quit);
              }
 
-           /* Previous code updated count by nchars rather than nbytes,
-              but that seems bogus to me.  ++kfs  */
-           count += nbytes;
+           count += nchars;
 
            inev.ie.kind = NO_EVENT;  /* Already stored above.  */
 
@@ -6989,7 +6987,9 @@
    We return as soon as there are no more events to be read.
 
    We return the number of characters stored into the buffer,
-   thus pretending to be `read'.
+   thus pretending to be `read' (except the characters we store
+   in the keyboard buffer can be multibyte, so are not necessarily
+   C chars).
 
    EXPECTED is nonzero if the caller knows input is available.  */
 




reply via email to

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