diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-02 20:30:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-02 20:30:35 +0200 |
commit | e2e69e48134cbfdedea7802810932f8592705024 (patch) | |
tree | 5de70fd649143a4e94584ef3a648b1877900b02f /src/charset.c | |
parent | 3653822546fb0f1005c32bb5b70dc9bfacdfc954 (diff) | |
download | vim-git-e2e69e48134cbfdedea7802810932f8592705024.tar.gz |
patch 8.0.1041: bogus characters when indenting during visual-block appendv8.0.1041
Problem: Bogus characters appear when indenting kicks in while doing a
visual-block append.
Solution: Recompute when indenting is done. (Christian Brabandt)
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c index d649179dd..8b83f6806 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1536,6 +1536,22 @@ skipwhite(char_u *q) } /* + * getwhitecols: return the number of whitespace + * columns (bytes) at the start of a given line + */ + int +getwhitecols_curline() +{ + return getwhitecols(ml_get_curline()); +} + + int +getwhitecols(char_u *p) +{ + return skipwhite(p) - p; +} + +/* * skip over digits */ char_u * |