0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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

@@ -1344,8 +1344,9 @@ gui_mch_wait_for_chars(int wtime)
{
is_timeout = FALSE;
if (wtime > 0)
PtSetResource(gui_ph_timer_timeout, Pt_ARG_TIMER_INITIAL, wtime, 0);
if (wtime >= 0)
PtSetResource(gui_ph_timer_timeout, Pt_ARG_TIMER_INITIAL,
wtime == 0 ? 1 : wtime, 0);
while (1)
{