Mercurial > vim
diff src/os_unix.c @ 11014:fb2bcfa6a8de v8.0.0396
patch 8.0.0396: 'balloonexpr' only works synchronously
commit https://github.com/vim/vim/commit/59716a27bd5c6c64def6c3ca430ff1246deae749
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 1 20:32:44 2017 +0100
patch 8.0.0396: 'balloonexpr' only works synchronously
Problem: 'balloonexpr' only works synchronously.
Solution: Add balloon_show(). (Jusufadis Bakamovic, closes https://github.com/vim/vim/issues/1449)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Mar 2017 20:45:05 +0100 |
parents | 2198b53b9ffe |
children | 576238eda5a4 |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -467,6 +467,12 @@ mch_inchar( if ((wait_time < 0 || wait_time > 100L) && channel_any_readahead()) wait_time = 10L; #endif +#ifdef FEAT_BEVAL + if (p_beval && wait_time > 100L) + /* The 'balloonexpr' may indirectly invoke a callback while waiting + * for a character, need to check often. */ + wait_time = 100L; +#endif /* * We want to be interrupted by the winch signal