Skip to content

Commit b807e37

Browse files
committed
Add italics check
1 parent 19f8af9 commit b807e37

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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)