comparison src/testdir/test_spell_utf8.vim @ 28790:a161c262e947 v8.2.4919

patch 8.2.4919: can add invalid bytes with :spellgood Commit: https://github.com/vim/vim/commit/7c824682d2028432ee082703ef0ab399867a089b Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 8 22:32:58 2022 +0100 patch 8.2.4919: can add invalid bytes with :spellgood Problem: Can add invalid bytes with :spellgood. Solution: Check for a valid word string.
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 May 2022 23:45:02 +0200
parents f48c435bd1df
children 77cd4bf3ad7d
comparison
equal deleted inserted replaced
28789:be28873d2f74 28790:a161c262e947
778 exe "%norm \<C-v>ez=>\<C-v>wzG" 778 exe "%norm \<C-v>ez=>\<C-v>wzG"
779 779
780 bwipe! 780 bwipe!
781 endfunc 781 endfunc
782 782
783 " Invalid bytes may cause trouble when creating the word list.
784 func Test_check_for_valid_word()
785 call assert_fails("spellgood! 0\xac", 'E1280:')
786 endfunc
787
783 788
784 " vim: shiftwidth=2 sts=2 expandtab 789 " vim: shiftwidth=2 sts=2 expandtab