diff options
| author | Karoly Lorentey | 2004-02-26 00:37:31 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-02-26 00:37:31 +0000 |
| commit | 1a10e2b72257d3c594dbd92216a4a2bd7b066e74 (patch) | |
| tree | c74a9293e2ffaf5157c9b63ec015f34dcb05dd0f /src | |
| parent | 46aab6b1e106cc1bc6d71ddcfc2aa84f0ae37f30 (diff) | |
| download | emacs-1a10e2b72257d3c594dbd92216a4a2bd7b066e74.tar.gz emacs-1a10e2b72257d3c594dbd92216a4a2bd7b066e74.zip | |
Check for numchars > 0 in handle_one_xevent, not 1.
src/xterm.c (handle_one_xevent): Check for numchars > 0 in the
KeyPress case, not 1.
(XTread_socket): Revert previous change.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-100
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/xterm.c b/src/xterm.c index 90356b2ed2f..90bd9abd6cf 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6382,7 +6382,7 @@ handle_one_xevent (dpyinfo, eventp, bufp_r, numcharsp, finish) | |||
| 6382 | 6382 | ||
| 6383 | orig_keysym = keysym; | 6383 | orig_keysym = keysym; |
| 6384 | 6384 | ||
| 6385 | if (numchars > 1) | 6385 | if (numchars > 0) |
| 6386 | { | 6386 | { |
| 6387 | Lisp_Object c; | 6387 | Lisp_Object c; |
| 6388 | 6388 | ||
| @@ -7209,12 +7209,6 @@ XTread_socket (display, bufp, numchars, expected) | |||
| 7209 | { | 7209 | { |
| 7210 | int finish; | 7210 | int finish; |
| 7211 | 7211 | ||
| 7212 | if (numchars <= 1) | ||
| 7213 | { | ||
| 7214 | /* The input buffer is full; read the rest next time. */ | ||
| 7215 | break; | ||
| 7216 | } | ||
| 7217 | |||
| 7218 | XNextEvent (dpyinfo->display, &event); | 7212 | XNextEvent (dpyinfo->display, &event); |
| 7219 | 7213 | ||
| 7220 | #ifdef HAVE_X_I18N | 7214 | #ifdef HAVE_X_I18N |