Permalink
Browse files

Fixes #169. Fixed IndentLinesToggle (#181)

  • Loading branch information...
1 parent 86b9824 commit 942fea03e62695108a303c5c08644d02ca1a90e5 @LubergAlexander LubergAlexander committed with Jan 8, 2017
Showing with 5 additions and 2 deletions.
  1. +5 −2 after/plugin/indentLine.vim
@@ -199,8 +199,11 @@ endfunction
augroup indentLine
autocmd!
autocmd BufWinEnter * call <SID>Setup()
- autocmd User * if exists("b:indentLine_enabled") || exists("b:indentLine_leadingSpaceEnabled") |
- \ call <SID>Setup() | endif
+ autocmd User * if exists("b:indentLine_enabled") && b:indentLine_enabled ||
+ \ exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled |
+ \ call <SID>Setup() |
+ \ endif
+
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload

0 comments on commit 942fea0

Please sign in to comment.