aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-08-23 10:45:58 -0400
committerGitHub <noreply@github.com>2018-08-23 10:45:58 -0400
commitdfbb75fdabe3829abd0a1f0f905adc7dc5740d15 (patch)
treefb3644fcd5566cac85a186513e0ba451505c1f36 /src/nvim/screen.c
parent012cd35bfbe2c175a31a2fba14cf1bdee6f06e8c (diff)
parent6c8851be4e5ce8cbd6f224451fae8a0adc292bf6 (diff)
downloadrneovim-dfbb75fdabe3829abd0a1f0f905adc7dc5740d15.tar.gz
rneovim-dfbb75fdabe3829abd0a1f0f905adc7dc5740d15.tar.bz2
rneovim-dfbb75fdabe3829abd0a1f0f905adc7dc5740d15.zip
Merge pull request #8889 from janlazo/vim-8.0.0999
[RDY] vim-patch:8.0.{999,1041,1043,1044}
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index ec48bf5dcf..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)
- cap_col = (int)(skipwhite(line) - line);
+ // 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