Mercurial > vim
comparison src/gui_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 | 536dd2bc5ac9 |
children | cd5c83115ec6 |
comparison
equal
deleted
inserted
replaced
15664:128d7a4ccd54 | 15665:31367ce5aac7 |
---|---|
2681 XtIntervalId channel_timer = (XtIntervalId)0; | 2681 XtIntervalId channel_timer = (XtIntervalId)0; |
2682 #endif | 2682 #endif |
2683 | 2683 |
2684 timed_out = FALSE; | 2684 timed_out = FALSE; |
2685 | 2685 |
2686 if (wtime > 0) | 2686 if (wtime >= 0) |
2687 timer = XtAppAddTimeOut(app_context, (long_u)wtime, gui_x11_timer_cb, | 2687 timer = XtAppAddTimeOut(app_context, |
2688 &timed_out); | 2688 (long_u)(wtime == 0 ? 1L : wtime), |
2689 gui_x11_timer_cb, &timed_out); | |
2689 #ifdef FEAT_JOB_CHANNEL | 2690 #ifdef FEAT_JOB_CHANNEL |
2690 /* If there is a channel with the keep_open flag we need to poll for input | 2691 /* If there is a channel with the keep_open flag we need to poll for input |
2691 * on them. */ | 2692 * on them. */ |
2692 if (channel_any_keep_open()) | 2693 if (channel_any_keep_open()) |
2693 channel_timer = XtAppAddTimeOut(app_context, (long_u)20, | 2694 channel_timer = XtAppAddTimeOut(app_context, (long_u)20, |