From d677ae5f6461dcd78f08caec2c4fa72e6e275137 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 23 Aug 2018 04:43:44 -0400 Subject: vim-patch:8.0.1041: bogus characters when indenting during visual-block append Problem: Bogus characters appear when indenting kicks in while doing a visual-block append. Solution: Recompute when indenting is done. (Christian Brabandt) https://github.com/vim/vim/commit/e2e69e48134cbfdedea7802810932f8592705024 --- src/nvim/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/screen.c') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index ec48bf5dcf..e1bc8556f9 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2462,7 +2462,7 @@ win_line ( if (has_spell) { /* For checking first word with a capital skip white space. */ if (cap_col == 0) - cap_col = (int)(skipwhite(line) - line); + 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 -- cgit From 6c8851be4e5ce8cbd6f224451fae8a0adc292bf6 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 23 Aug 2018 04:13:29 -0400 Subject: lint --- src/nvim/screen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nvim/screen.c') 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 -- cgit