From a743297be2b39247fc0086302a8a370d46ee0290 Mon Sep 17 00:00:00 2001 From: Nathan Wilson Date: Tue, 9 Jun 2015 15:05:18 -0400 Subject: spell.c: fix "[s" search. #2813 Closes #2791 --- src/nvim/spell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit