diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-08 21:59:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-08 21:59:25 +0200 |
commit | 2f10658b06bbdd8f25c4ff152266c808234cee0a (patch) | |
tree | 8227dc063a5f4f258563f74adf09326a7d57dae0 /src/ex_cmds2.c | |
parent | a5c6a0b6c71ae11078cbf6f5e18ce49a0468a117 (diff) | |
download | vim-git-2f10658b06bbdd8f25c4ff152266c808234cee0a.tar.gz |
patch 8.1.1300: in a terminal 'ballooneval' does not work right awayv8.1.1300
Problem: In a terminal 'ballooneval' does not work right away.
Solution: Flush output after drawing the balloon. Add the <Ignore> key
code. Add a test.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 07e664867..1e9d18e83 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -229,6 +229,9 @@ profile_zero(proftime_T *tm) static timer_T *first_timer = NULL; static long last_timer_id = 0; +/* + * Return time left until "due". Negative if past "due". + */ long proftime_time_left(proftime_T *due, proftime_T *now) { @@ -445,7 +448,11 @@ check_due_timer(void) balloonEvalForTerm = TRUE; } if (balloonEval != NULL) + { general_beval_cb(balloonEval, 0); + setcursor(); + out_flush(); + } } else if (next_due == -1 || next_due > this_due) next_due = this_due; |