This commit is contained in:
Jan Edmund Lazo
2018-08-23 04:13:29 -04:00
parent 27fbffeb4f
commit 6c8851be4e
5 changed files with 40 additions and 36 deletions

View File

@@ -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.