aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Wilson <nswilson@gmail.com>2015-06-09 15:05:18 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-06-21 14:38:17 -0400
commita743297be2b39247fc0086302a8a370d46ee0290 (patch)
tree90f27949ae26f34618c46a5617522c831c67e891
parent6ed6d8d910907f5a85b3cf5eb7291e6fff4ae9e4 (diff)
downloadrneovim-a743297be2b39247fc0086302a8a370d46ee0290.tar.gz
rneovim-a743297be2b39247fc0086302a8a370d46ee0290.tar.bz2
rneovim-a743297be2b39247fc0086302a8a370d46ee0290.zip
spell.c: fix "[s" search. #2813
Closes #2791
-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