diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-18 18:14:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-18 18:14:47 +0100 |
commit | c9e649ae816cdff0d1da8a97d40e695c6d3991bd (patch) | |
tree | b9e52b1126c83609c9b5dae5305e535bc4002a10 /src/main.c | |
parent | 606d45ccd8a2ad2956e2729f6135fd79fd2f6d72 (diff) | |
download | vim-git-c9e649ae816cdff0d1da8a97d40e695c6d3991bd.tar.gz |
patch 8.0.1405: duplicated code for getting a typed characterv8.0.1405
Problem: Duplicated code for getting a typed character. CursorHold is
called too often in the GUI. (lilydjwg)
Solution: Refactor code to move code up from mch_inchar(). Don't fire
CursorHold if feedkeys() was used. (closes #2451)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index bfcc3e517..877adaf5b 100644 --- a/src/main.c +++ b/src/main.c @@ -619,7 +619,7 @@ vim_main2(void) # ifdef FEAT_SUN_WORKSHOP if (!usingSunWorkShop) # endif - gui_wait_for_chars(50L); + gui_wait_for_chars(50L, typebuf.tb_change_cnt); TIME_MSG("GUI delay"); } #endif |