diff options
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 1c5daca6425..aea431ea3fa 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6776,9 +6776,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6776 | kbd_buffer_store_event_hold (&inev.ie, hold_quit); | 6776 | kbd_buffer_store_event_hold (&inev.ie, hold_quit); |
| 6777 | } | 6777 | } |
| 6778 | 6778 | ||
| 6779 | /* Previous code updated count by nchars rather than nbytes, | 6779 | count += nchars; |
| 6780 | but that seems bogus to me. ++kfs */ | ||
| 6781 | count += nbytes; | ||
| 6782 | 6780 | ||
| 6783 | inev.ie.kind = NO_EVENT; /* Already stored above. */ | 6781 | inev.ie.kind = NO_EVENT; /* Already stored above. */ |
| 6784 | 6782 | ||
| @@ -7275,7 +7273,9 @@ x_dispatch_event (event, display) | |||
| 7275 | We return as soon as there are no more events to be read. | 7273 | We return as soon as there are no more events to be read. |
| 7276 | 7274 | ||
| 7277 | We return the number of characters stored into the buffer, | 7275 | We return the number of characters stored into the buffer, |
| 7278 | thus pretending to be `read'. | 7276 | thus pretending to be `read' (except the characters we store |
| 7277 | in the keyboard buffer can be multibyte, so are not necessarily | ||
| 7278 | C chars). | ||
| 7279 | 7279 | ||
| 7280 | EXPECTED is nonzero if the caller knows input is available. */ | 7280 | EXPECTED is nonzero if the caller knows input is available. */ |
| 7281 | 7281 | ||