aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-23 04:43:44 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-23 10:00:53 -0400
commitd677ae5f6461dcd78f08caec2c4fa72e6e275137 (patch)
tree939b783497deef4f314f008f7c593285672f02a9 /src/nvim/screen.c
parentfe57a8a4e410e19f05a4137709632ee375b1c2aa (diff)
downloadrneovim-d677ae5f6461dcd78f08caec2c4fa72e6e275137.tar.gz
rneovim-d677ae5f6461dcd78f08caec2c4fa72e6e275137.tar.bz2
rneovim-d677ae5f6461dcd78f08caec2c4fa72e6e275137.zip
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
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
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