vim-pandoc/vim-pantondoc — pull request #24 by lyokha (2014-04-17 12:13:37+00:00)
Title: fix for issue #23 in upstream

call slow synID() only when getline(v:lnum) matches fold patterns

in other words, call ``getline()`` first and ``synID()`` second, not vice versa! This should extremely increase performance in most realistic cases.