Mercurial > emacs
changeset 79870:b508fea5860e
(handle_one_xevent): Revert to counting chars not bytes.
(XTread_socket): Clarify what return value is counting in comment.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Thu, 17 Jan 2008 15:22:42 +0000 |
parents | a8237408c221 |
children | 3c3f589ec4b6 |
files | src/xterm.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Thu Jan 17 12:48:41 2008 +0000 +++ b/src/xterm.c Thu Jan 17 15:22:42 2008 +0000 @@ -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. */