# HG changeset patch # User Karoly Lorentey # Date 1077677856 0 # Node ID 8a5c2390bc7d08eae81294a82c4a6ae09d1d57d9 # Parent d651f25811d57ab444f1041938cb4129134d99ea 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 diff -r d651f25811d5 -r 8a5c2390bc7d src/xterm.c --- 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