Make SyntasticInfo aware of b:syntastic_mode.

This commit is contained in:
LCD 47 2014-12-12 10:28:46 +02:00
parent 21f052ab02
commit 6de1559f33

View File

@ -77,7 +77,7 @@ function! g:SyntasticModeMap.modeInfo(filetypes) " {{{2
echomsg 'Info for filetype: ' . type
call self.synch()
echomsg 'Mode: ' . self._mode
echomsg 'Global mode: ' . self._mode
if self._mode ==# 'active'
if len(self._passiveFiletypes)
let plural = len(self._passiveFiletypes) != 1 ? 's' : ''
@ -90,6 +90,14 @@ function! g:SyntasticModeMap.modeInfo(filetypes) " {{{2
endif
endif
echomsg 'Filetype ' . type . ' is ' . (self.allowsAutoChecking(type) ? 'active' : 'passive')
if !len(a:filetypes)
if exists('b:syntastic_mode') && (b:syntastic_mode ==# 'active' || b:syntastic_mode ==# 'passive')
echomsg 'Local mode: ' . b:syntastic_mode
endif
echomsg 'The current file will ' . (self.doAutoChecking() ? '' : 'not ') . 'be checked automatically'
endif
endfunction " }}}2
" }}}1