# HG changeset patch # User Bram Moolenaar # Date 1563714007 -7200 # Node ID f12745505a236d699e6b1ea59341fae80f98c291 # Parent 15078662cd76e168ded643ac0e54d2c268b8fe89 patch 8.1.1724: too much overhead checking for CTRL-C while processing text commit https://github.com/vim/vim/commit/b4fe0eb4b4fe52a68a1df05162c03fe51c2fce79 Author: Bram Moolenaar Date: Sun Jul 21 14:50:21 2019 +0200 patch 8.1.1724: too much overhead checking for CTRL-C while processing text Problem: Too much overhead checking for CTRL-C while processing text. Solution: Increase BREAKCHECK_SKIP. Remove the difference for when built with the GUI. (suggested by Andy Massimino, closes #4708) diff --git a/src/feature.h b/src/feature.h --- a/src/feature.h +++ b/src/feature.h @@ -483,6 +483,11 @@ # define FEAT_TEXT_PROP #endif +#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) +// Can limit syntax highlight time to 'redrawtime'. +# define SYN_TIME_LIMIT 1 +#endif + /* * +spell spell checking * diff --git a/src/misc1.c b/src/misc1.c --- a/src/misc1.c +++ b/src/misc1.c @@ -3182,11 +3182,7 @@ vim_fexists(char_u *fname) */ #ifndef BREAKCHECK_SKIP -# ifdef FEAT_GUI /* assume the GUI only runs on fast computers */ -# define BREAKCHECK_SKIP 200 -# else -# define BREAKCHECK_SKIP 32 -# endif +# define BREAKCHECK_SKIP 1000 #endif static int breakcheck_count = 0; diff --git a/src/screen.c b/src/screen.c --- a/src/screen.c +++ b/src/screen.c @@ -167,11 +167,6 @@ static void win_redr_ruler(win_T *wp, in /* Ugly global: overrule attribute used by screen_char() */ static int screen_char_attr = 0; -#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) -/* Can limit syntax highlight time to 'redrawtime'. */ -# define SYN_TIME_LIMIT 1 -#endif - #ifdef FEAT_RIGHTLEFT # define HAS_RIGHTLEFT(x) x #else diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1724, +/**/ 1723, /**/ 1722,