diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 5015155d97f..cd18b91abf1 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7110,6 +7110,9 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7110 | while (gpm = Gpm_GetEvent (&event), gpm == 1) { | 7110 | while (gpm = Gpm_GetEvent (&event), gpm == 1) { |
| 7111 | nread += handle_one_term_event (tty, &event, &hold_quit); | 7111 | nread += handle_one_term_event (tty, &event, &hold_quit); |
| 7112 | } | 7112 | } |
| 7113 | if (gpm < 0) | ||
| 7114 | /* Presumably the GPM daemon has closed the connection. */ | ||
| 7115 | close_gpm (); | ||
| 7113 | if (hold_quit.kind != NO_EVENT) | 7116 | if (hold_quit.kind != NO_EVENT) |
| 7114 | kbd_buffer_store_event (&hold_quit); | 7117 | kbd_buffer_store_event (&hold_quit); |
| 7115 | if (nread) | 7118 | if (nread) |