mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
defaults: set fillchars "foldsep" to box line #11702
"│" U+2502 BOX DRAWINGS LIGHT VERTICAL Fallback to old default | if 'ambiwidth' is set.
This commit is contained in:

committed by
Justin M. Keyes

parent
1cbe8d6d78
commit
05ea3c1997
@@ -3544,7 +3544,7 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set)
|
||||
{ &wp->w_p_fcs_chars.fold, "fold", 183 }, // ·
|
||||
{ &wp->w_p_fcs_chars.foldopen, "foldopen", '-' },
|
||||
{ &wp->w_p_fcs_chars.foldclosed, "foldclose", '+' },
|
||||
{ &wp->w_p_fcs_chars.foldsep, "foldsep", '|' },
|
||||
{ &wp->w_p_fcs_chars.foldsep, "foldsep", 9474 }, // │
|
||||
{ &wp->w_p_fcs_chars.diff, "diff", '-' },
|
||||
{ &wp->w_p_fcs_chars.msgsep, "msgsep", ' ' },
|
||||
{ &wp->w_p_fcs_chars.eob, "eob", '~' },
|
||||
@@ -3576,9 +3576,11 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set)
|
||||
// XXX: If ambiwidth=double then "|" and "·" take 2 columns, which is
|
||||
// forbidden (TUI limitation?). Set old defaults.
|
||||
fcs_tab[2].def = '|';
|
||||
fcs_tab[6].def = '|';
|
||||
fcs_tab[3].def = '-';
|
||||
} else {
|
||||
fcs_tab[2].def = 9474; // │
|
||||
fcs_tab[6].def = 9474; // │
|
||||
fcs_tab[3].def = 183; // ·
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user