aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/spell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index d79ee4d200..63fc7b80a7 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -2173,11 +2173,12 @@ spell_move_to (
if (attrp != NULL)
*attrp = attr;
return len;
- } else if (curline)
+ } else if (curline) {
// Insert mode completion: put cursor after
// the bad word.
assert(len <= INT_MAX);
found_pos.col += (int)len;
+ }
found_len = len;
}
} else