aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-14 19:11:36 +0800
committerGitHub <noreply@github.com>2022-08-14 19:11:36 +0800
commitb1faf5f0b92356c5abb434cbb978c1db34f89c4a (patch)
tree6180d8b5d36e09b6874e3075110f87f1fa05dcda /src/nvim/testdir
parentc77cce615b1bdacd60f98ba5f41540535d142a1f (diff)
downloadrneovim-b1faf5f0b92356c5abb434cbb978c1db34f89c4a.tar.gz
rneovim-b1faf5f0b92356c5abb434cbb978c1db34f89c4a.tar.bz2
rneovim-b1faf5f0b92356c5abb434cbb978c1db34f89c4a.zip
vim-patch:8.2.4249: the timeout limit for spell suggestions is always 5000 (#19769)
Problem: The timeout limit for spell suggestions is always 5000 milli seconds. Solution: Add the "timeout" entry to 'spellsuggest'. https://github.com/vim/vim/commit/585ee07cfef307b2fc828537e0d31fdc22d7e79f
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_spell.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim
index 7744c5bcca..8ab8204b10 100644
--- a/src/nvim/testdir/test_spell.vim
+++ b/src/nvim/testdir/test_spell.vim
@@ -474,6 +474,16 @@ func Test_spellsuggest_option_expr()
bwipe!
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()
throw 'skipped: Nvim does not support enc=latin1'
new