Work around vim bug where synID is sometimes wrong

Need to investigate further.  Seems to work for now.
This commit is contained in:
Andy K. Massimino
2018-08-17 10:49:15 -04:00
parent 4871e93e88
commit ebdac3081d

View File

@@ -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)