[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xterm.c,v
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/xterm.c,v |
Date: |
Fri, 14 Sep 2007 04:11:27 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kenichi Handa <handa> 07/09/14 04:11:26
Index: xterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xterm.c,v
retrieving revision 1.956
retrieving revision 1.957
diff -u -b -r1.956 -r1.957
--- xterm.c 10 Sep 2007 21:25:32 -0000 1.956
+++ xterm.c 14 Sep 2007 04:11:26 -0000 1.957
@@ -6538,16 +6538,17 @@
gives us composition information. */
coding.composing = COMPOSITION_DISABLED;
- for (i = 0; i < nbytes; i++)
- {
- STORE_KEYSYM_FOR_DEBUG (copy_bufptr[i]);
- }
-
+ if (nbytes > 0)
{
/* Decode the input data. */
int require;
unsigned char *p;
+ for (i = 0; i < nbytes; i++)
+ {
+ STORE_KEYSYM_FOR_DEBUG (copy_bufptr[i]);
+ }
+
require = decoding_buffer_size (&coding, nbytes);
p = (unsigned char *) alloca (require);
coding.mode |= CODING_MODE_LAST_BLOCK;
@@ -6558,7 +6559,6 @@
nbytes = coding.produced;
nchars = coding.produced_char;
copy_bufptr = p;
- }
/* Convert the input data to a sequence of
character events. */
@@ -6575,6 +6575,7 @@
inev.ie.code = c;
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 */
- [Emacs-diffs] Changes to emacs/src/xterm.c,v, Richard M. Stallman, 2007/09/10
- [Emacs-diffs] Changes to emacs/src/xterm.c,v, Dan Nicolaescu, 2007/09/10
- [Emacs-diffs] Changes to emacs/src/xterm.c,v,
Kenichi Handa <=
- [Emacs-diffs] Changes to emacs/src/xterm.c,v, Michael Cadilhac, 2007/09/19
- [Emacs-diffs] Changes to emacs/src/xterm.c,v, Stefan Monnier, 2007/09/20
- [Emacs-diffs] Changes to emacs/src/xterm.c,v, Glenn Morris, 2007/09/20
- [Emacs-diffs] Changes to emacs/src/xterm.c,v, Glenn Morris, 2007/09/22