Bug fix: getwinvar() got its third argument only in Vim 7.3.831.

This commit is contained in:
LCD 47 2013-06-07 22:23:56 +03:00
parent 4ae72576da
commit 7a919a4d0a

View File

@ -155,7 +155,7 @@ function! g:SyntasticLoclist.show()
for buf in tabpagebuflist()
if buflisted(buf) && bufloaded(buf) && getbufvar(buf, '&buftype') ==# 'quickfix'
let win = bufwinnr(buf)
let title = getwinvar(win, 'quickfix_title', '')
let title = getwinvar(win, 'quickfix_title')
if title ==# ':setloclist()' || strpart(title, 0, 16) ==# ':SyntasticCheck '
call setwinvar(win, 'quickfix_title', ':SyntasticCheck ' . self._name)
endif