Mercurial > vim
comparison src/mbyte.c @ 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 | 3fe127d8ede6 |
children | faf7fcd1c8d5 |
comparison
equal
deleted
inserted
replaced
28789:be28873d2f74 | 28790:a161c262e947 |
---|---|
4224 theend: | 4224 theend: |
4225 vim_free(tofree); | 4225 vim_free(tofree); |
4226 convert_setup(&vimconv, NULL, NULL); | 4226 convert_setup(&vimconv, NULL, NULL); |
4227 } | 4227 } |
4228 | 4228 |
4229 #if defined(FEAT_GUI_GTK) || defined(PROTO) | 4229 #if defined(FEAT_GUI_GTK) || defined(FEAT_SPELL) || defined(PROTO) |
4230 /* | 4230 /* |
4231 * Return TRUE if string "s" is a valid utf-8 string. | 4231 * Return TRUE if string "s" is a valid utf-8 string. |
4232 * When "end" is NULL stop at the first NUL. | 4232 * When "end" is NULL stop at the first NUL. |
4233 * When "end" is positive stop there. | 4233 * When "end" is positive stop there. |
4234 */ | 4234 */ |