aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-09-04 10:16:57 -0400
committerGitHub <noreply@github.com>2020-09-04 10:16:57 -0400
commitdd465bbccc72665a8e4dbfde09aa7f866b328fef (patch)
tree3c5bdd7502487942dae7d70a4307eb60392509fd /src/nvim/spell.c
parent3acfefb63ee70c8eac13bf6b308a0e73e6fb8007 (diff)
parentb163a8992583926de63a0eccc5678705475677e4 (diff)
downloadrneovim-dd465bbccc72665a8e4dbfde09aa7f866b328fef.tar.gz
rneovim-dd465bbccc72665a8e4dbfde09aa7f866b328fef.tar.bz2
rneovim-dd465bbccc72665a8e4dbfde09aa7f866b328fef.zip
Merge pull request #12848 from jamessan/vim-8.2.1552
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index ad235f1f14..05bb501fa2 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -5663,6 +5663,9 @@ check_suggestions (
int len;
hlf_T attr;
+ if (gap->ga_len == 0) {
+ return;
+ }
stp = &SUG(*gap, 0);
for (int i = gap->ga_len - 1; i >= 0; --i) {
// Need to append what follows to check for "the the".