aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.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/screen.c
parent27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d (diff)
downloadrneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.gz
rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.bz2
rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.zip
lint
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index e1bc8556f9..092820321c 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2460,9 +2460,10 @@ win_line (
ptr = line;
if (has_spell) {
- /* For checking first word with a capital skip white space. */
- if (cap_col == 0)
+ // For checking first word with a capital skip white space.
+ if (cap_col == 0) {
cap_col = (int)getwhitecols(line);
+ }
/* To be able to spell-check over line boundaries copy the end of the
* current line into nextline[]. Above the start of the next line was