1
0
forked from aniani/vim

patch 8.2.4249: the timeout limit for spell suggestions is always 5000

Problem:    The timeout limit for spell suggestions is always 5000 milli
            seconds.
Solution:   Add the "timeout" entry to 'spellsuggest'.
This commit is contained in:
Bram Moolenaar
2022-01-29 11:22:17 +00:00
parent a0c4e2f2d7
commit 585ee07cfe
4 changed files with 34 additions and 5 deletions

View File

@@ -446,6 +446,16 @@ func Test_spellsuggest_expr_errors()
delfunc MySuggest3
endfunc
func Test_spellsuggest_timeout()
set spellsuggest=timeout:30
set spellsuggest=timeout:-123
set spellsuggest=timeout:999999
call assert_fails('set spellsuggest=timeout', 'E474:')
call assert_fails('set spellsuggest=timeout:x', 'E474:')
call assert_fails('set spellsuggest=timeout:-x', 'E474:')
call assert_fails('set spellsuggest=timeout:--9', 'E474:')
endfunc
func Test_spellinfo()
new
let runtime = substitute($VIMRUNTIME, '\\', '/', 'g')