changeset 10128:98ddc760e8d5 v7.4.2335

commit https://github.com/vim/vim/commit/72b4b870fcc445c14faf282e0595b5f9406b101d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 6 20:24:50 2016 +0200 patch 7.4.2335 Problem: taglist() is slow. (Luc Hermitte) Solution: Check for CTRL-C less often when doing a linear search. (closes https://github.com/vim/vim/issues/1044)
author Christian Brabandt <cb@256bit.org>
date Tue, 06 Sep 2016 20:30:07 +0200
parents f2b0d6221ae9
children af5497a26f0e
files src/tag.c src/version.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- a/src/version.c
+++ b/src/version.c
@@ -764,6 +764,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2335,
+/**/
     2334,
 /**/
     2333,