Mercurial > emacs
changeset 83057:8a5c2390bc7d
Don't try to handle a new event if the input buffer is full.
src/xterm.c (XTread_socket): Stop processing when numchars gets below 2.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-97
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Wed, 25 Feb 2004 02:57:36 +0000 |
parents | d651f25811d5 |
children | 19323b99ddcc |
files | src/xterm.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Wed Feb 25 02:55:32 2004 +0000 +++ b/src/xterm.c Wed Feb 25 02:57:36 2004 +0000 @@ -7209,6 +7209,13 @@ { int finish; + if (numchars <= 1) + { + /* The input buffer is full; read the rest next time. */ + interrupt_input_pending = 1; + break; + } + XNextEvent (dpyinfo->display, &event); #ifdef HAVE_X_I18N