mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Work around vim bug where synID is sometimes wrong
Need to investigate further. Seems to work for now.
This commit is contained in:
@@ -411,6 +411,10 @@ function! s:get_delim(opts) " {{{1
|
||||
return {}
|
||||
endif
|
||||
|
||||
" XXX: workaround an apparent obscure vim bug where the
|
||||
" reported syntax id is incorrect on the first synID() call
|
||||
call matchup#delim#skip(l:lnum, l:cnum)
|
||||
|
||||
let l:skip_state = l:check_skip ? 0
|
||||
\ : matchup#delim#skip(l:lnum, l:cnum)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user