]> granicus.if.org Git - vim/commitdiff
patch 7.4.2335 v7.4.2335
authorBram Moolenaar <Bram@vim.org>
Tue, 6 Sep 2016 18:24:50 +0000 (20:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 6 Sep 2016 18:24:50 +0000 (20:24 +0200)
Problem:    taglist() is slow. (Luc Hermitte)
Solution:   Check for CTRL-C less often when doing a linear search. (closes
            #1044)

src/tag.c
src/version.c

index 2920482b3411d8056d463d7ca24e0c9aea2a7239..b2d1f151afc125a6ae20fd7d02ff9f60979751e5 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -1578,7 +1578,11 @@ find_tags(
         */
        for (;;)
        {
-           line_breakcheck();      /* check for CTRL-C typed */
+           /* check for CTRL-C typed, more often when jumping around */
+           if (state == TS_BINARY || state == TS_SKIP_BACK)
+               line_breakcheck();
+           else
+               fast_breakcheck();
 #ifdef FEAT_INS_EXPAND
            if ((flags & TAG_INS_COMP)) /* Double brackets for gcc */
                ins_compl_check_keys(30);
index 4e76bc7b3a60ce184f5bfa81eb0ef7a3b9a2253a..63ee919181fec00fdc049d508902c6bcd487de47 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2335,
 /**/
     2334,
 /**/