comparison 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
comparison
equal deleted inserted replaced
27440:1118a65c9bc7 27441:674240fcf6de
442 442
443 set nospell spellsuggest& 443 set nospell spellsuggest&
444 delfunc MySuggest 444 delfunc MySuggest
445 delfunc MySuggest2 445 delfunc MySuggest2
446 delfunc MySuggest3 446 delfunc MySuggest3
447 endfunc
448
449 func Test_spellsuggest_timeout()
450 set spellsuggest=timeout:30
451 set spellsuggest=timeout:-123
452 set spellsuggest=timeout:999999
453 call assert_fails('set spellsuggest=timeout', 'E474:')
454 call assert_fails('set spellsuggest=timeout:x', 'E474:')
455 call assert_fails('set spellsuggest=timeout:-x', 'E474:')
456 call assert_fails('set spellsuggest=timeout:--9', 'E474:')
447 endfunc 457 endfunc
448 458
449 func Test_spellinfo() 459 func Test_spellinfo()
450 new 460 new
451 let runtime = substitute($VIMRUNTIME, '\\', '/', 'g') 461 let runtime = substitute($VIMRUNTIME, '\\', '/', 'g')