Skip to content

Commit

Permalink
Accept offscreen popup borders as lists
Browse files Browse the repository at this point in the history
  • Loading branch information
replcat committed Feb 9, 2025
1 parent aca23ce commit ee7c4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/matchup/matchparen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ function! s:do_offscreen_popup_nvim(offscreen) abort " {{{1
let l:border = get(g:matchup_matchparen_offscreen, 'border', 0)
if !empty(l:border)
let l:win_cfg.border = has('nvim-0.5')
\ && type(l:border) == v:t_string
\ && (type(l:border) == v:t_string || type(l:border) == v:t_list)
\ ? l:border : ['', '' ,'', '', '', '', '', '']
if !has('nvim-0.6') && l:lnum >= line('.')
let l:win_cfg.row -= min([2, l:row - winline() - 1])
Expand Down

0 comments on commit ee7c4ff

Please sign in to comment.