1
0
forked from aniani/vim

patch 8.1.0840: getchar(0) never returns a character in the terminal

Problem:    getchar(0) never returns a character in the terminal.
Solution:   Call wait_func() at least once.
This commit is contained in:
Bram Moolenaar
2019-01-28 22:32:58 +01:00
parent f58d81a187
commit 12dfc9eef1
7 changed files with 36 additions and 13 deletions

View File

@@ -2683,9 +2683,10 @@ gui_mch_wait_for_chars(long wtime)
timed_out = FALSE;
if (wtime > 0)
timer = XtAppAddTimeOut(app_context, (long_u)wtime, gui_x11_timer_cb,
&timed_out);
if (wtime >= 0)
timer = XtAppAddTimeOut(app_context,
(long_u)(wtime == 0 ? 1L : wtime),
gui_x11_timer_cb, &timed_out);
#ifdef FEAT_JOB_CHANNEL
/* If there is a channel with the keep_open flag we need to poll for input
* on them. */