@@ -2385,4 +2385,37 @@ func Test_popup_border()
23852385 call StopVimInTerminal (buf )
23862386endfunc
23872387
2388+ func Test_popup_shadow_hiddenchar ()
2389+ CheckScreendump
2390+
2391+ let lines = << trim END
2392+ bold italic underline reverse normal
2393+ italic underline reverse normal bold
2394+ underline reverse normal bold italic
2395+ reverse normal bold italic underline
2396+ normal bold italic underline reverse
2397+ END
2398+ call writefile (lines , ' Xtest' , ' D' )
2399+ let buf = RunVimInTerminal (' Xtest' , {' cols' : 75 })
2400+
2401+ call term_sendkeys (buf , " :set completeopt=menuone,noselect pumborder=shadow\<CR> " )
2402+ call term_sendkeys (buf , " :hi BoldGrp cterm=bold\<CR> " )
2403+ call term_sendkeys (buf , " :hi ItalicGrp cterm=italic,underline\<CR> " )
2404+ call term_sendkeys (buf , " :hi ReverseGrp cterm=reverse\<CR> " )
2405+ call term_sendkeys (buf , " :call matchadd(\" BoldGrp\" , \" bold\" )\<CR> " )
2406+ call term_sendkeys (buf , " :call matchadd(\" ItalicGrp\" , \" italic\" )\<CR> " )
2407+ call term_sendkeys (buf , " :call matchadd(\" ItalicGrp\" , \" underline\" )\<CR> " )
2408+ call term_sendkeys (buf , " :call matchadd(\" ReverseGrp\" , \" reverse\" )\<CR> " )
2409+
2410+ call term_sendkeys (buf , " i\<C-N> " )
2411+ call TermWait (buf , 10 )
2412+ call VerifyScreenDump (buf , ' Test_popup_shadow_hiddenchar_1' , {' rows' : 8 })
2413+ call term_sendkeys (buf , " \<Esc> wwi\<C-N> " )
2414+ call TermWait (buf , 10 )
2415+ call VerifyScreenDump (buf , ' Test_popup_shadow_hiddenchar_2' , {' rows' : 8 })
2416+ call term_sendkeys (buf , " \<Esc> " )
2417+
2418+ call StopVimInTerminal (buf )
2419+ endfunc
2420+
23882421" vim: shiftwidth = 2 sts = 2 expandtab
0 commit comments