Mercurial > vim
comparison src/proto/ui.pro @ 15653:59a1ff689b4d v8.1.0834
patch 8.1.0834: GUI may wait too long before dealing with messages
commit https://github.com/vim/vim/commit/e40b9d47bf8f8f716d3ef5a95c8ecbbdc0a501f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 27 16:55:47 2019 +0100
patch 8.1.0834: GUI may wait too long before dealing with messages
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Jan 2019 17:00:07 +0100 |
parents | 1bdc12630fc0 |
children | c1698187c482 |
comparison
equal
deleted
inserted
replaced
15652:e987698f1397 | 15653:59a1ff689b4d |
---|---|
1 /* ui.c */ | 1 /* ui.c */ |
2 void ui_write(char_u *s, int len); | 2 void ui_write(char_u *s, int len); |
3 void ui_inchar_undo(char_u *s, int len); | 3 void ui_inchar_undo(char_u *s, int len); |
4 int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); | 4 int ui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); |
5 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)); | |
5 int ui_wait_for_chars_or_timer(long wtime, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int *interrupted, int ignore_input); | 6 int ui_wait_for_chars_or_timer(long wtime, int (*wait_func)(long wtime, int *interrupted, int ignore_input), int *interrupted, int ignore_input); |
6 int ui_char_avail(void); | 7 int ui_char_avail(void); |
7 void ui_delay(long msec, int ignoreinput); | 8 void ui_delay(long msec, int ignoreinput); |
8 void ui_suspend(void); | 9 void ui_suspend(void); |
9 void suspend_shell(void); | 10 void suspend_shell(void); |