Mercurial > emacs
diff src/xterm.c @ 23567:5a0cdfd791a2
(XTread_socket): Check the returned value of XmbLookupString more carefully.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Thu, 29 Oct 1998 00:16:49 +0000 |
parents | 1e52542fb338 |
children | 701b6bdc7a22 |
line wrap: on
line diff
--- a/src/xterm.c Wed Oct 28 07:52:13 1998 +0000 +++ b/src/xterm.c Thu Oct 29 00:16:49 1998 +0000 @@ -4239,6 +4239,13 @@ &event.xkey, copy_buffer, 80, &keysym, &status_return); + if (status_return == XLookupNone) + break; + else if (status_return == XLookupChars) + keysym = NoSymbol; + else if (status_return != XLookupKeySym + && status_return != XLookupBoth) + abort (); } else nbytes = XLookupString (&event.xkey, copy_buffer, @@ -4357,6 +4364,9 @@ count += nbytes; numchars -= nbytes; + + if (keysym == NoSymbol) + break; } else abort ();