mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.1405: duplicated code for getting a typed character
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)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user