Fixes #169. Fixed IndentLinesToggle (#181)

This commit is contained in:
Alexander
2017-01-07 20:17:49 -08:00
committed by Yggdroot
parent 86b9824b89
commit 942fea03e6

View File

@@ -199,8 +199,11 @@ endfunction
augroup indentLine augroup indentLine
autocmd! autocmd!
autocmd BufWinEnter * call <SID>Setup() autocmd BufWinEnter * call <SID>Setup()
autocmd User * if exists("b:indentLine_enabled") || exists("b:indentLine_leadingSpaceEnabled") | autocmd User * if exists("b:indentLine_enabled") && b:indentLine_enabled ||
\ call <SID>Setup() | endif \ exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled |
\ call <SID>Setup() |
\ endif
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor() autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0 autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload