diff options
author | Miles Bader <miles@gnu.org> | 2008-01-22 23:53:46 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2008-01-22 23:53:46 +0000 |
commit | b83ab79fe4b2f0ba65a700e707b0dc98e5018df8 (patch) | |
tree | 4626d7cc1c39ba62cfed7da0d1b30aac1350b03c /src/xterm.c | |
parent | 2f40987e5816e7099718a105697e87a736c38eea (diff) | |
parent | 74676ce76d4f01aae7c1da29494c8a5ff0e62668 (diff) | |
download | emacs-b83ab79fe4b2f0ba65a700e707b0dc98e5018df8.tar.gz |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index 574c398949b..77a1b3745f1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6558,9 +6558,7 @@ handle_one_xevent (dpyinfo, eventp, finish, 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. */ @@ -7057,7 +7055,9 @@ x_dispatch_event (event, display) 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. */ |