Mercurial > vim
comparison src/gui_gtk_x11.c @ 15665:31367ce5aac7 v8.1.0840
patch 8.1.0840: getchar(0) never returns a character in the terminal
commit https://github.com/vim/vim/commit/12dfc9eef14fe74c46145aa9e6cba9666f1bcd40
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 28 22:32:58 2019 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 28 Jan 2019 22:45:05 +0100 |
parents | d89c5b339c2a |
children | e5441bee8063 |
comparison
equal
deleted
inserted
replaced
15664:128d7a4ccd54 | 15665:31367ce5aac7 |
---|---|
6315 guint channel_timer = 0; | 6315 guint channel_timer = 0; |
6316 #endif | 6316 #endif |
6317 | 6317 |
6318 timed_out = FALSE; | 6318 timed_out = FALSE; |
6319 | 6319 |
6320 /* this timeout makes sure that we will return if no characters arrived in | 6320 // This timeout makes sure that we will return if no characters arrived in |
6321 * time */ | 6321 // time. If "wtime" is zero just use one. |
6322 if (wtime > 0) | 6322 if (wtime >= 0) |
6323 timer = timeout_add(wtime, input_timer_cb, &timed_out); | 6323 timer = timeout_add(wtime <= 0 ? 1L : wtime, |
6324 input_timer_cb, &timed_out); | |
6324 else | 6325 else |
6325 timer = 0; | 6326 timer = 0; |
6326 | 6327 |
6327 #ifdef FEAT_JOB_CHANNEL | 6328 #ifdef FEAT_JOB_CHANNEL |
6328 /* If there is a channel with the keep_open flag we need to poll for input | 6329 /* If there is a channel with the keep_open flag we need to poll for input |