comparison src/testdir/test_spell.vim @ 28077:ba9f1a9ddaf9 v8.2.4563

patch 8.2.4563: "z=" in Visual mode may go beyond the end of the line Commit: https://github.com/vim/vim/commit/5c68617d395f9d7b824f68475b24ce3e38d653a3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 13 20:12:25 2022 +0000 patch 8.2.4563: "z=" in Visual mode may go beyond the end of the line Problem: "z=" in Visual mode may go beyond the end of the line. Solution: Adjust "badlen".
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Mar 2022 21:15:03 +0100
parents 674240fcf6de
children b4c111ea83b1
comparison
equal deleted inserted replaced
28076:aef2f0445c90 28077:ba9f1a9ddaf9
452 set spellsuggest=timeout:999999 452 set spellsuggest=timeout:999999
453 call assert_fails('set spellsuggest=timeout', 'E474:') 453 call assert_fails('set spellsuggest=timeout', 'E474:')
454 call assert_fails('set spellsuggest=timeout:x', 'E474:') 454 call assert_fails('set spellsuggest=timeout:x', 'E474:')
455 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:') 456 call assert_fails('set spellsuggest=timeout:--9', 'E474:')
457 endfunc
458
459 func Test_spellsuggest_visual_end_of_line()
460 let enc_save = &encoding
461 set encoding=iso8859
462
463 " This was reading beyond the end of the line.
464 norm R00000000000
465 sil norm 0
466 sil! norm i00000)
467 sil! norm i00000)
468 call feedkeys("\<CR>")
469 norm z=
470
471 let &encoding = enc_save
457 endfunc 472 endfunc
458 473
459 func Test_spellinfo() 474 func Test_spellinfo()
460 new 475 new
461 let runtime = substitute($VIMRUNTIME, '\\', '/', 'g') 476 let runtime = substitute($VIMRUNTIME, '\\', '/', 'g')