]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.0.0643: when a pattern search is slow Vim becomes unusable v8.0.0643
authorBram Moolenaar <Bram@vim.org>
Sat, 17 Jun 2017 16:44:21 +0000 (18:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 17 Jun 2017 16:44:21 +0000 (18:44 +0200)
commitfbd0b0af6800f6ff89857863d6a07ea03f09ff6c
treed970232ff584511e30efcfe2f7ea5eefb9e9f8d4
parent8cf91286ca46a501d24e4b7d631b193256782c88
patch 8.0.0643: when a pattern search is slow Vim becomes unusable

Problem:    When 'hlsearch' is set and matching with the last search pattern
            is very slow, Vim becomes unusable.  Cannot quit search by
            pressing CTRL-C.
Solution:   When the search times out set a flag and don't try again.  Check
            for timeout and CTRL-C in NFA loop that adds states.
19 files changed:
src/edit.c
src/evalfunc.c
src/ex_cmds.c
src/ex_docmd.c
src/ex_getln.c
src/gui.c
src/normal.c
src/proto/regexp.pro
src/proto/search.pro
src/quickfix.c
src/regexp.c
src/regexp.h
src/regexp_nfa.c
src/screen.c
src/search.c
src/spell.c
src/syntax.c
src/tag.c
src/version.c