aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index c4bca2a9c..a22a6a104 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2205,7 +2205,7 @@ static int readit(void) // read (maybe cursor) key from stdin
2205 int c; 2205 int c;
2206 2206
2207 fflush_all(); 2207 fflush_all();
2208 c = read_key(STDIN_FILENO, readbuffer); 2208 c = read_key(STDIN_FILENO, readbuffer, /*timeout off:*/ -2);
2209 if (c == -1) { // EOF/error 2209 if (c == -1) { // EOF/error
2210 go_bottom_and_clear_to_eol(); 2210 go_bottom_and_clear_to_eol();
2211 cookmode(); // terminal to "cooked" 2211 cookmode(); // terminal to "cooked"