aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2022-01-11 06:50:13 +0000
committerGitHub <noreply@github.com>2022-01-11 06:50:13 +0000
commit25eb7692d8e29cc83a70d74cbe1a8a1fae1f8ba2 (patch)
tree5c22c7638ec8101d5696d7691a6468e76622da03 /src/nvim/spell.c
parent7165e7770df581179fabf8fd03109909c6be879a (diff)
parentc6dddc3464dbaa71e31a779df51ac2f1af977237 (diff)
downloadrneovim-25eb7692d8e29cc83a70d74cbe1a8a1fae1f8ba2.tar.gz
rneovim-25eb7692d8e29cc83a70d74cbe1a8a1fae1f8ba2.tar.bz2
rneovim-25eb7692d8e29cc83a70d74cbe1a8a1fae1f8ba2.zip
Merge pull request #16961 from f380cedric/vim-8.2.3582
vim-patch:8.2.3582
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index 9429a06e92..1296d410f6 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -4082,7 +4082,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so
// char, e.g., "thes," -> "these".
p = fword + sp->ts_fidx;
MB_PTR_BACK(fword, p);
- if (!spell_iswordp(p, curwin)) {
+ if (!spell_iswordp(p, curwin) && *preword != NUL) {
p = preword + STRLEN(preword);
MB_PTR_BACK(preword, p);
if (spell_iswordp(p, curwin)) {