mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Don't get matches when inside a closed fold
This commit is contained in:
@@ -168,6 +168,11 @@ function! s:matchparen.highlight(...) abort dict " {{{1
|
||||
|
||||
if pumvisible() | return | endif
|
||||
|
||||
" don't get matches when inside a closed fold
|
||||
if foldclosed(line('.')) > -1
|
||||
return
|
||||
endif
|
||||
|
||||
let l:force_update = a:0 >= 1 ? a:1 : 0
|
||||
let l:entering_insert = a:0 >= 2 ? a:2 : 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user