Merge pull request #11715 from teto/fix_fillchar

[RDY] fillchars: fix display on closed fold
This commit is contained in:
Matthieu Coudron 2020-01-20 18:39:17 +01:00 committed by GitHub
commit 4d4035400e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2130,11 +2130,11 @@ fill_foldcolumn(
if (closed) {
if (symbol != 0) {
// rollback length
// rollback previous write
char_counter -= len;
memset(&p[char_counter], ' ', len);
}
symbol = wp->w_p_fcs_chars.foldclosed;
len = utf_char2bytes(symbol, &p[char_counter]);
len = utf_char2bytes(wp->w_p_fcs_chars.foldclosed, &p[char_counter]);
char_counter += len;
}