From 8c55b859f8e534609f131d8e4609910e9712ff2e Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Sun, 8 Sep 2013 22:12:28 +0800 Subject: [PATCH] Fix filetype filtering --- after/plugin/indentLine.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 5635052..298faef 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -165,7 +165,7 @@ endfunction "{{{1 commands autocmd BufWinEnter * call Setup() autocmd BufRead,BufNewFile,ColorScheme * call InitColor() -autocmd Syntax * if exists("b:indentLine_set") | call InitColor() | call SetIndentLine() | endif +autocmd Syntax * if exists("b:indentLine_set") && exists("b:indentLine_enabled") && b:indentLine_enabled | call InitColor() | call SetIndentLine() | endif command! -nargs=? IndentLinesReset call ResetWidth() command! IndentLinesToggle call IndentLinesToggle()