commit 98c1355e2f2236bcbad7f8f513d3c11237040293
parent 85d125cac4a28737bc1c244977887e0fec0aece1
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat, 15 Mar 2025 18:53:33 +0800
test(old): fix test_tabline failure (#32907)
Also fix tests after test_sha256 in test_alot.vim being skipped.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/test/old/testdir/test_sha256.vim b/test/old/testdir/test_sha256.vim
@@ -1,7 +1,7 @@
" Tests for the sha256() function.
source check.vim
-CheckFeature cryptv
+" CheckFeature cryptv
CheckFunction sha256
function Test_sha256()
diff --git a/test/old/testdir/test_tabline.vim b/test/old/testdir/test_tabline.vim
@@ -210,6 +210,9 @@ endfunc
" Test 'tabline' with truncated double-width label at the start.
func Test_tabline_truncated_double_width()
+ let save_TabLine = nvim_get_hl(0, #{name: 'TabLine'})
+ " Nvim: avoid combining TabLine with TabLineFill in custom tabline
+ hi TabLine cterm=underline,nocombine gui=underline,nocombine
tabnew
redraw
call assert_match('X$', Screenline(1))
@@ -226,6 +229,7 @@ func Test_tabline_truncated_double_width()
bw!
set tabline=
+ call nvim_set_hl(0, 'TabLine', save_TabLine)
endfunc
" vim: shiftwidth=2 sts=2 expandtab