vim-patch:7.4.2335

Problem:    taglist() is slow. (Luc Hermitte)
Solution:   Check for CTRL-C less often when doing a linear search. (closes
            vim/vim#1044)

72b4b870fc
This commit is contained in:
lonerover 2016-12-19 12:15:25 +08:00
parent 33319b1bf0
commit 3e7f78b6cf
2 changed files with 7 additions and 2 deletions

View File

@ -1297,7 +1297,12 @@ find_tags (
* Read and parse the lines in the file one by one
*/
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();
}
if ((flags & TAG_INS_COMP)) /* Double brackets for gcc */
ins_compl_check_keys(30, false);
if (got_int || compl_interrupted) {

View File

@ -105,7 +105,7 @@ static int included_patches[] = {
// 2338 NA
2337,
// 2336,
// 2335,
2335,
// 2334,
// 2333,
// 2332 NA