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)
diff --git a/src/main.c b/src/main.c
index bfcc3e5..877adaf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -619,7 +619,7 @@
# 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