Mercurial > vim
diff src/screen.c @ 12323:4dba3e4f3b01 v8.0.1041
patch 8.0.1041: bogus characters when indenting during visual-block append
commit https://github.com/vim/vim/commit/e2e69e48134cbfdedea7802810932f8592705024
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 2 20:30:35 2017 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2017 20:45:04 +0200 |
parents | 2a8890b80923 |
children | 735b49ff8fbb |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -3463,7 +3463,7 @@ win_line( { /* For checking first word with a capital skip white space. */ if (cap_col == 0) - cap_col = (int)(skipwhite(line) - line); + cap_col = 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