aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-23 04:13:29 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-23 10:00:53 -0400
commit6c8851be4e5ce8cbd6f224451fae8a0adc292bf6 (patch)
treefb3644fcd5566cac85a186513e0ba451505c1f36 /src/nvim/spell.c
parent27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d (diff)
downloadrneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.gz
rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.bz2
rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.zip
lint
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index c05a1d107a..4acbdcc298 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -1398,13 +1398,14 @@ spell_move_to (
capcol = 0;
// For checking first word with a capital skip white space.
- if (capcol == 0)
+ if (capcol == 0) {
capcol = (int)getwhitecols(line);
- else if (curline && wp == curwin) {
+ } else if (curline && wp == curwin) {
// For spellbadword(): check if first word needs a capital.
col = (int)getwhitecols(line);
- if (check_need_cap(lnum, col))
+ if (check_need_cap(lnum, col)) {
capcol = col;
+ }
// Need to get the line again, may have looked at the previous
// one.