]> granicus.if.org Git - vim/commitdiff
patch 8.1.1724: too much overhead checking for CTRL-C while processing text v8.1.1724
authorBram Moolenaar <Bram@vim.org>
Sun, 21 Jul 2019 12:50:21 +0000 (14:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 21 Jul 2019 12:50:21 +0000 (14:50 +0200)
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)

src/feature.h
src/misc1.c
src/screen.c
src/version.c

index 37af4c003892057e311b7d7f07c07c7149c98616..74ea8d59ca7e5c13aaa2238b1efb9f9701db6c7d 100644 (file)
 # 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
  *
index f5549fdc52a72a2185b4e12ca077dd257d8e8a90..7df3954312404f20ddf0833f2bff8b015b3e0516 100644 (file)
@@ -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;
index 79987108e4222cbf9c012c8b1b56474772f017f8..bd76f7ba5355f12b7a7142c984278b9a1c9c8e25 100644 (file)
@@ -167,11 +167,6 @@ static void win_redr_ruler(win_T *wp, int always, int ignore_pum);
 /* 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
index 5dc4d0ca5c6c3ddf1830b0e2ecb1feff79d028ab..8a98f510a47bfe2b768f42533eb7aab042608504 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1724,
 /**/
     1723,
 /**/