Mercurial > vim
comparison src/gui_w32.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 | 8ab9ad27fca4 |
children | 728bef04b0d4 |
comparison
equal
deleted
inserted
replaced
15664:128d7a4ccd54 | 15665:31367ce5aac7 |
---|---|
2095 { | 2095 { |
2096 int focus; | 2096 int focus; |
2097 | 2097 |
2098 s_timed_out = FALSE; | 2098 s_timed_out = FALSE; |
2099 | 2099 |
2100 if (wtime > 0) | 2100 if (wtime >= 0) |
2101 { | 2101 { |
2102 /* Don't do anything while processing a (scroll) message. */ | 2102 // Don't do anything while processing a (scroll) message. |
2103 if (s_busy_processing) | 2103 if (s_busy_processing) |
2104 return FAIL; | 2104 return FAIL; |
2105 s_wait_timer = (UINT)SetTimer(NULL, 0, (UINT)wtime, | 2105 |
2106 // When called with "wtime" zero, just want one msec. | |
2107 s_wait_timer = (UINT)SetTimer(NULL, 0, (UINT)(wtime == 0 ? 1 : wtime), | |
2106 (TIMERPROC)_OnTimer); | 2108 (TIMERPROC)_OnTimer); |
2107 } | 2109 } |
2108 | 2110 |
2109 allow_scrollbar = TRUE; | 2111 allow_scrollbar = TRUE; |
2110 | 2112 |