diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-14 22:34:58 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-23 00:03:47 -0400 |
commit | 07a182c6b57e13e2563aef667131b976db8711cc (patch) | |
tree | ef6c3f8a6840aca6905e3f1de8c187749b486652 /runtime | |
parent | eada8f5aaae0c072571c87b6dbd3c7992541d698 (diff) | |
download | rneovim-07a182c6b57e13e2563aef667131b976db8711cc.tar.gz rneovim-07a182c6b57e13e2563aef667131b976db8711cc.tar.bz2 rneovim-07a182c6b57e13e2563aef667131b976db8711cc.zip |
vim-patch:8.0.0647: syntax highlighting can make cause a freeze
Problem: Syntax highlighting can make cause a freeze.
Solution: Apply 'redrawtime' to syntax highlighting, per window.
https://github.com/vim/vim/commit/06f1ed2f78c5c03af95054fc3a8665df39dec362
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 171fff8547..e773d27394 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4528,10 +4528,14 @@ A jump table for the options with a short description can be found at |Q_op|. 'redrawtime' 'rdt' number (default 2000) global Time in milliseconds for redrawing the display. Applies to - 'hlsearch', 'inccommand' and |:match| highlighting. + 'hlsearch', 'inccommand', |:match| highlighting and syntax + highlighting. When redrawing takes more than this many milliseconds no further - matches will be highlighted. This is used to avoid that Vim hangs - when using a very complicated pattern. + matches will be highlighted. + For syntax highlighting the time applies per window. When over the + limit syntax highlighting is disabled until |CTRL-L| is used. + This is used to avoid that Vim hangs when using a very complicated + pattern. *'regexpengine'* *'re'* 'regexpengine' 're' number (default 0) |