mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #11715 from teto/fix_fillchar
[RDY] fillchars: fix display on closed fold
This commit is contained in:
commit
4d4035400e
@ -2130,11 +2130,11 @@ fill_foldcolumn(
|
|||||||
|
|
||||||
if (closed) {
|
if (closed) {
|
||||||
if (symbol != 0) {
|
if (symbol != 0) {
|
||||||
// rollback length
|
// rollback previous write
|
||||||
char_counter -= len;
|
char_counter -= len;
|
||||||
|
memset(&p[char_counter], ' ', len);
|
||||||
}
|
}
|
||||||
symbol = wp->w_p_fcs_chars.foldclosed;
|
len = utf_char2bytes(wp->w_p_fcs_chars.foldclosed, &p[char_counter]);
|
||||||
len = utf_char2bytes(symbol, &p[char_counter]);
|
|
||||||
char_counter += len;
|
char_counter += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user