File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -386,7 +386,11 @@ function popup.create(what, vim_options)
386386 end
387387
388388 if vim_options .highlight then
389- vim .api .nvim_win_set_option (win_id , " winhl" , string.format (" Normal:%s" , vim_options .highlight ))
389+ vim .api .nvim_win_set_option (
390+ win_id ,
391+ " winhl" ,
392+ string.format (" Normal:%s,EndOfBuffer:%s" , vim_options .highlight , vim_options .highlight )
393+ )
390394 end
391395
392396 -- enter
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ describe("plenary.popup", function()
2727 highlight = " PopupColor1" ,
2828 })
2929
30- eq (" Normal:PopupColor1" , vim .api .nvim_win_get_option (win_id , " winhl" ))
30+ eq (" Normal:PopupColor1,EndOfBuffer:PopupColor1 " , vim .api .nvim_win_get_option (win_id , " winhl" ))
3131 end )
3232
3333 it (" can create a border" , function ()
You can’t perform that action at this time.
0 commit comments