Mercurial > vim
comparison src/tag.c @ 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 | 4aead6a9b7a9 |
children | 9a13895ee8d7 |
comparison
equal
deleted
inserted
replaced
10127:f2b0d6221ae9 | 10128:98ddc760e8d5 |
---|---|
1576 /* | 1576 /* |
1577 * Read and parse the lines in the file one by one | 1577 * Read and parse the lines in the file one by one |
1578 */ | 1578 */ |
1579 for (;;) | 1579 for (;;) |
1580 { | 1580 { |
1581 line_breakcheck(); /* check for CTRL-C typed */ | 1581 /* check for CTRL-C typed, more often when jumping around */ |
1582 if (state == TS_BINARY || state == TS_SKIP_BACK) | |
1583 line_breakcheck(); | |
1584 else | |
1585 fast_breakcheck(); | |
1582 #ifdef FEAT_INS_EXPAND | 1586 #ifdef FEAT_INS_EXPAND |
1583 if ((flags & TAG_INS_COMP)) /* Double brackets for gcc */ | 1587 if ((flags & TAG_INS_COMP)) /* Double brackets for gcc */ |
1584 ins_compl_check_keys(30); | 1588 ins_compl_check_keys(30); |
1585 if (got_int || compl_interrupted) | 1589 if (got_int || compl_interrupted) |
1586 #else | 1590 #else |