mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
33319b1bf0
commit
3e7f78b6cf
@ -1297,7 +1297,12 @@ find_tags (
|
|||||||
* Read and parse the lines in the file one by one
|
* Read and parse the lines in the file one by one
|
||||||
*/
|
*/
|
||||||
for (;; ) {
|
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 */
|
if ((flags & TAG_INS_COMP)) /* Double brackets for gcc */
|
||||||
ins_compl_check_keys(30, false);
|
ins_compl_check_keys(30, false);
|
||||||
if (got_int || compl_interrupted) {
|
if (got_int || compl_interrupted) {
|
||||||
|
@ -105,7 +105,7 @@ static int included_patches[] = {
|
|||||||
// 2338 NA
|
// 2338 NA
|
||||||
2337,
|
2337,
|
||||||
// 2336,
|
// 2336,
|
||||||
// 2335,
|
2335,
|
||||||
// 2334,
|
// 2334,
|
||||||
// 2333,
|
// 2333,
|
||||||
// 2332 NA
|
// 2332 NA
|
||||||
|
Loading…
Reference in New Issue
Block a user