Revert "Fix indendLine doesn't work with 'syntax' option change"

This commit is contained in:
Yggdroot
2016-01-15 22:46:12 +08:00
parent 28ef9b49d9
commit 53ec95d698

View File

@@ -157,11 +157,6 @@ function! s:Setup()
call s:InitColor()
endif
call s:EnableFeature()
endfunction
"{{{1 function! s:EnableFeature()
function! s:EnableFeature() abort
if g:indentLine_enabled
call s:IndentLinesEnable()
endif
@@ -204,8 +199,7 @@ endfunction
augroup indentLine
autocmd!
autocmd BufWinEnter * call <SID>Setup()
autocmd Syntax * unlet! b:indentLine_enabled | call <SID>EnableFeature()
autocmd BufRead,BufNewFile,ColorScheme * call <SID>InitColor()
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
autocmd BufUnload * unlet! b:indentLine_enabled
augroup END