diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-27 16:55:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-27 16:55:47 +0100 |
commit | e40b9d47bf8f8f716d3ef5a95c8ecbbdc0a501f9 (patch) | |
tree | 7891a85cc4c4d8f9c173309dfdf7e870777a8046 /src/proto/ui.pro | |
parent | d93090f41f70c521cfad5b25efcb0024b9480082 (diff) | |
download | vim-git-e40b9d47bf8f8f716d3ef5a95c8ecbbdc0a501f9.tar.gz |
patch 8.1.0834: GUI may wait too long before dealing with messagesv8.1.0834
Problem: GUI may wait too long before dealing with messages. Returning
early may cause a mapping to time out.
Solution: Use the waiting loop from Unix also for the GUI.
(closes #3817, closes #3824)
Diffstat (limited to 'src/proto/ui.pro')
-rw-r--r-- | src/proto/ui.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/ui.pro b/src/proto/ui.pro index ac830f0fc..774a30896 100644 --- a/src/proto/ui.pro +++ b/src/proto/ui.pro @@ -2,6 +2,7 @@ void ui_write(char_u *s, int len); void ui_inchar_undo(char_u *s, int len); int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); +int inchar_loop(char_u *buf, int maxlen, long wtime, int tb_change_cnt, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int (*resize_func)(int check_only)); int ui_wait_for_chars_or_timer(long wtime, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int *interrupted, int ignore_input); int ui_char_avail(void); void ui_delay(long msec, int ignoreinput); |