Skip to content

Commit 91e24d4

Browse files
authored
Merge pull request #1609 from ychin/fix-test-popup-italics-macos-13
ci: Fix test_popup failing on macos-13 due to lack of italics support
2 parents 19f411e + 0b0f598 commit 91e24d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/testdir/test_popup.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,6 +2396,15 @@ endfunc
23962396
func Test_popup_shadow_hiddenchar()
23972397
CheckScreendump
23982398

2399+
if has('osx')
2400+
" On older macOS versions, the default Terminal app does not properly
2401+
" advertise italics support, which this test requires. When that happens,
2402+
" Vim just uses t_mr (reverse) as a substitute, which we detect here.
2403+
if &t_ZH == &t_mr
2404+
throw 'Skipped: italics not supported'
2405+
endif
2406+
endif
2407+
23992408
let lines =<< trim END
24002409
bold italic underline reverse normal
24012410
italic underline reverse normal bold

0 commit comments

Comments
 (0)