mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
add MatchupOffscreenLeave and MatchupOffscreenEnter User autocmd
This commit is contained in:
@@ -125,6 +125,7 @@ function! s:matchparen.clear() abort dict " {{{1
|
||||
if exists('w:matchup_oldstatus')
|
||||
let &l:statusline = w:matchup_oldstatus
|
||||
unlet w:matchup_oldstatus
|
||||
doautocmd User MatchupOffscreenLeave
|
||||
endif
|
||||
|
||||
let w:matchup_need_clear = 0
|
||||
@@ -349,6 +350,7 @@ function! matchup#matchparen#offscreen(current) " {{{1
|
||||
let w:matchup_oldstatus = &l:statusline
|
||||
|
||||
let &l:statusline = s:format_statusline(l:offscreen)
|
||||
doautocmd User MatchupOffscreenEnter
|
||||
endfunction
|
||||
|
||||
" }}}1
|
||||
|
||||
Reference in New Issue
Block a user