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

Commit 3fbe574

Browse files
committed
fix issue #192
this issue is introduced by commit af91253
1 parent 88b6f92 commit 3fbe574

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

after/plugin/indentLine.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ function! s:Setup()
156156
call s:InitColor()
157157
endif
158158

159+
if ! exists("b:indentLine_setup")
160+
let b:indentLine_setup = 1
161+
endif
162+
159163
if g:indentLine_enabled
160164
call s:IndentLinesEnable()
161165
endif
@@ -208,7 +212,7 @@ augroup indentLine
208212
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
209213
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload
210214
autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call <SID>Setup()
211-
autocmd Syntax * doautocmd indentLine BufUnload | call <SID>Setup()
215+
autocmd Syntax * doautocmd indentLine BufUnload | if exists("b:indentLine_setup") | call <SID>Setup() | endif
212216
augroup END
213217

214218
"{{{1 commands

0 commit comments

Comments
 (0)