diff options
author | David Bürgin <676c7473@gmail.com> | 2015-03-28 22:28:37 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-05 19:24:58 -0400 |
commit | d3bb177f1e1dcbc4104d7bba6f2ac4ebe3ffc9c9 (patch) | |
tree | f3a788c3d4f876819b13af525e43955d0952af1b /runtime | |
parent | a69e464f70f1f26c352b713f70b627ea07232e79 (diff) | |
download | rneovim-d3bb177f1e1dcbc4104d7bba6f2ac4ebe3ffc9c9.tar.gz rneovim-d3bb177f1e1dcbc4104d7bba6f2ac4ebe3ffc9c9.tar.bz2 rneovim-d3bb177f1e1dcbc4104d7bba6f2ac4ebe3ffc9c9.zip |
vim-patch:7.4.497 #2295
Problem: With some regexp patterns the NFA engine uses many states and
becomes very slow. To the user it looks like Vim freezes.
Solution: When the number of states reaches a limit fall back to the old
engine. (Christian Brabandt)
https://github.com/vim/vim/releases/tag/v7-4-497
Helped-by: David Bürgin <676c7473@gmail.com>
Helped-by: Justin M. Keyes <justinkz@gmail.com>
Helped-by: Scott Prager <splinterofchaos@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 0c964ae519..c0f1888d84 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5383,6 +5383,10 @@ A jump table for the options with a short description can be found at |Q_op|. Note that when using the NFA engine and the pattern contains something that is not supported the pattern will not match. This is only useful for debugging the regexp engine. + Using automatic selection enables Vim to switch the engine, if the + default engine becomes too costly. E.g., when the NFA engine uses too + many states. This should prevent Vim from hanging on a combination of + a complex pattern with long text. *'relativenumber'* *'rnu'* *'norelativenumber'* *'nornu'* 'relativenumber' 'rnu' boolean (default off) |