HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
058fb10
)
(XTread_socket) <KeyPress>: Don't use
author
Gerd Moellmann
<gerd@gnu.org>
Mon, 29 Oct 2001 09:44:31 +0000
(09:44 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Mon, 29 Oct 2001 09:44:31 +0000
(09:44 +0000)
STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
<handa@etl.go.jp>.
src/xterm.c
patch
|
blob
|
blame
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index
1ea8a80
..
3944556
100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-10593,8
+10593,12
@@
XTread_socket (sd, bufp, numchars, expected)
character events. */
for (i = 0; i < nbytes; i += len)
{
- c = STRING_CHAR_AND_LENGTH (copy_bufptr + i,
- nbytes - i, len);
+ if (nchars == nbytes)
+ c = copy_bufptr[i], len = 1;
+ else
+ c = STRING_CHAR_AND_LENGTH (copy_bufptr + i,
+ nbytes - i, len);
+
bufp->kind = (SINGLE_BYTE_CHAR_P (c)
? ascii_keystroke
: multibyte_char_keystroke);