Commit: patch 9.2.1119: 'fillchars' "vert" does not fall back to the default

1 view
Skip to first unread message

Christian Brabandt

unread,
Sep 17, 2026, 4:30:13 PM (12 hours ago) Sep 17
to vim...@googlegroups.com
patch 9.2.1119: 'fillchars' "vert" does not fall back to the default

Commit: https://github.com/vim/vim/commit/4b3e2e3db0a4926622da59ef6301ff79c99fff30
Author: Hirohito Higashi <h.eas...@gmail.com>
Date: Thu Sep 17 20:13:36 2026 +0000

patch 9.2.1119: 'fillchars' "vert" does not fall back to the default

Problem: When 'fillchars' is set without a "vert" item, the vertical
separator is drawn with a space instead of the documented
default '|' (habamax).
Solution: Use '|' as the internal default for "vert" in
set_chars_option() (Hirohito Higashi).

fixes: #21322
closes: #21325

Co-Authored-By: Claude Opus 5 (1M context) <nor...@anthropic.com>
Signed-off-by: Hirohito Higashi <h.eas...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/screen.c b/src/screen.c
index 662bc0ed7..e50395a1a 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -5743,7 +5743,7 @@ set_chars_option(win_T *wp, char_u *value, int is_listchars, int apply,
{
fill_chars.stl = ' ';
fill_chars.stlnc = ' ';
- fill_chars.vert = ' ';
+ fill_chars.vert = '|';
fill_chars.fold = '-';
fill_chars.foldopen = '-';
fill_chars.foldclosed = '+';
diff --git a/src/testdir/dumps/Test_display_fillchars_vert.dump b/src/testdir/dumps/Test_display_fillchars_vert.dump
new file mode 100644
index 000000000..211691c5a
--- /dev/null
+++ b/src/testdir/dumps/Test_display_fillchars_vert.dump
@@ -0,0 +1,8 @@
+>w+0&#ffffff0|i|n|d|o|w| |2| @28||+1#4040ff13#0000001|w+0#0000000#ffffff0|i|n|d|o|w| |1| @28
+|w|i|n|d|o|w| |2| @28||+1#4040ff13#0000001|w+0#0000000#ffffff0|i|n|d|o|w| |1| @28
+|w|i|n|d|o|w| |2| @28||+1#4040ff13#0000001|w+0#0000000#ffffff0|i|n|d|o|w| |1| @28
+|~+0#4040ff13&| @35||+1&#0000001|~+0&#ffffff0| @35
+|~| @35||+1&#0000001|~+0&#ffffff0| @35
+|~| @35||+1&#0000001|~+0&#ffffff0| @35
+|[+3#0000000&|N|o| |N|a|m|e|]| |[|+|]| @5|1|,|1| @11|A|l@1| |[+1&&|N|o| |N|a|m|e|]| |[|+|]| @5|1|,|1| @11|A|l@1
+| +0&&@74
diff --git a/src/testdir/test_display.vim b/src/testdir/test_display.vim
index 5fee79716..524de04d9 100644
--- a/src/testdir/test_display.vim
+++ b/src/testdir/test_display.vim
@@ -493,6 +493,23 @@ func Test_local_fillchars()
call StopVimInTerminal(buf)
endfunc

+func Test_fillchars_vert_default()
+ CheckScreendump
+
+ let lines =<< trim END
+ hi VertSplit ctermfg=12 ctermbg=0
+ set fillchars=trunc:<
+ call setline(1, ['window 1']->repeat(3))
+ vnew
+ call setline(1, ['window 2']->repeat(3))
+ END
+ call writefile(lines, 'Xdisplayfillcharsvert', 'D')
+ let buf = RunVimInTerminal('-S Xdisplayfillcharsvert', #{rows: 8})
+ call VerifyScreenDump(buf, 'Test_display_fillchars_vert', {})
+
+ call StopVimInTerminal(buf)
+endfunc
+
func Test_display_linebreak_breakat()
new
vert resize 25
diff --git a/src/version.c b/src/version.c
index a5a3af974..c15f8ab8f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1119,
/**/
1118,
/**/
Reply all
Reply to author
Forward
0 new messages