@@ -2193,14 +2193,11 @@ func Test_previewpopup()
21932193 call delete (' Xheader.h' )
21942194endfunc
21952195
2196- func Test_popupmenu_info ()
2197- CheckScreendump
2198-
2196+ func Get_popupmenu_lines ()
21992197 let lines = << trim END
22002198 set completeopt += preview,popup
22012199 set completefunc = CompleteFuncDict
22022200 hi InfoPopup ctermbg= yellow
2203- set completepopup = height:4 ,highlight :InfoPopup
22042201
22052202 func CompleteFuncDict (findstart, base)
22062203 if a: findstart
@@ -2249,7 +2246,16 @@ func Test_popupmenu_info()
22492246 endfunc
22502247 call setline (1 , ' text text text text text text text ' )
22512248 END
2249+ return lines
2250+ endfunc
2251+
2252+ func Test_popupmenu_info_border ()
2253+ CheckScreendump
2254+
2255+ let lines = Get_popupmenu_lines ()
2256+ call add (lines , ' set completepopup=height:4,highlight:InfoPopup' )
22522257 call writefile (lines , ' XtestInfoPopup' )
2258+
22532259 let buf = RunVimInTerminal (' -S XtestInfoPopup' , #{rows: 14 })
22542260 call term_wait (buf , 50 )
22552261
@@ -2269,4 +2275,21 @@ func Test_popupmenu_info()
22692275 call delete (' XtestInfoPopup' )
22702276endfunc
22712277
2278+ func Test_popupmenu_info_noborder ()
2279+ CheckScreendump
2280+
2281+ let lines = Get_popupmenu_lines ()
2282+ call add (lines , ' set completepopup=height:4,border:off' )
2283+ call writefile (lines , ' XtestInfoPopupNb' )
2284+
2285+ let buf = RunVimInTerminal (' -S XtestInfoPopupNb' , #{rows: 14 })
2286+ call term_wait (buf , 50 )
2287+
2288+ call term_sendkeys (buf , " A\<C-X>\<C-U> " )
2289+ call VerifyScreenDump (buf , ' Test_popupwin_infopopup_nb_1' , {})
2290+
2291+ call StopVimInTerminal (buf )
2292+ call delete (' XtestInfoPopupNb' )
2293+ endfunc
2294+
22722295" vim: shiftwidth = 2 sts = 2
0 commit comments