Skip to content
This repository was archived by the owner on Jul 29, 2023. It is now read-only.

Commit 942fea0

Browse files
LubergAlexanderYggdroot
authored andcommitted
Fixes #169. Fixed IndentLinesToggle (#181)
1 parent 86b9824 commit 942fea0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

after/plugin/indentLine.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,11 @@ endfunction
199199
augroup indentLine
200200
autocmd!
201201
autocmd BufWinEnter * call <SID>Setup()
202-
autocmd User * if exists("b:indentLine_enabled") || exists("b:indentLine_leadingSpaceEnabled") |
203-
\ call <SID>Setup() | endif
202+
autocmd User * if exists("b:indentLine_enabled") && b:indentLine_enabled ||
203+
\ exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled |
204+
\ call <SID>Setup() |
205+
\ endif
206+
204207
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
205208
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
206209
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload

0 commit comments

Comments
 (0)