diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-08 22:32:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-08 22:32:58 +0100 |
commit | 7c824682d2028432ee082703ef0ab399867a089b (patch) | |
tree | f2f5fd36e29e8aaeadb17ae0289d2a685afaafb5 /src/mbyte.c | |
parent | 9830db63057db76044eca89cc4cfb2758ae7a543 (diff) | |
download | vim-git-7c824682d2028432ee082703ef0ab399867a089b.tar.gz |
patch 8.2.4919: can add invalid bytes with :spellgoodv8.2.4919
Problem: Can add invalid bytes with :spellgood.
Solution: Check for a valid word string.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 2b7f9991a..a01a05140 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -4226,7 +4226,7 @@ theend: convert_setup(&vimconv, NULL, NULL); } -#if defined(FEAT_GUI_GTK) || defined(PROTO) +#if defined(FEAT_GUI_GTK) || defined(FEAT_SPELL) || defined(PROTO) /* * Return TRUE if string "s" is a valid utf-8 string. * When "end" is NULL stop at the first NUL. |