Mercurial > vim
diff src/testdir/test_spell.vim @ 27441:674240fcf6de v8.2.4249
patch 8.2.4249: the timeout limit for spell suggestions is always 5000
Commit: https://github.com/vim/vim/commit/585ee07cfef307b2fc828537e0d31fdc22d7e79f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 29 11:22:17 2022 +0000
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'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Jan 2022 12:30:02 +0100 |
parents | d0096a7f8d96 |
children | ba9f1a9ddaf9 |
line wrap: on
line diff
--- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -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')