Permalink
Browse files

Don't reset syntax highlighting if g:miniBufExplForceSyntaxEnable isn…

…'t set
  • Loading branch information...
1 parent 71f194f commit 00fa5f03fec3a779d8a24ff0e80e061bd8a53a08 @toupeira toupeira committed Oct 19, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 plugin/minibufexpl.vim
View
@@ -1601,7 +1601,10 @@ function! <SID>AutoUpdate(delBufNum,currBufName)
" If this is the only buffer left then toggle the buffer
if (winbufnr(2) == -1)
call <SID>CycleBuffer(1)
- exec 'syntax enable'
+ if g:miniBufExplForceSyntaxEnable
+ call <SID>DEBUG('Enable Syntax', 9)
+ exec 'syntax enable'
+ endif
call <SID>DEBUG('AutoUpdate does not run for cycled windows', 9)
else
call <SID>DEBUG('AutoUpdate does not run for the MBE window', 9)

0 comments on commit 00fa5f0

Please sign in to comment.