Skip to content

Commit

Permalink
fix issue Yggdroot#192
Browse files Browse the repository at this point in the history
this issue is introduced by commit af91253
  • Loading branch information
Yggdroot committed May 4, 2017
1 parent 88b6f92 commit 3fbe574
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion after/plugin/indentLine.vim
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ function! s:Setup()
call s:InitColor()
endif

if ! exists("b:indentLine_setup")
let b:indentLine_setup = 1
endif

if g:indentLine_enabled
call s:IndentLinesEnable()
endif
Expand Down Expand Up @@ -208,7 +212,7 @@ augroup indentLine
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload
autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call <SID>Setup()
autocmd Syntax * doautocmd indentLine BufUnload | call <SID>Setup()
autocmd Syntax * doautocmd indentLine BufUnload | if exists("b:indentLine_setup") | call <SID>Setup() | endif
augroup END

"{{{1 commands
Expand Down

0 comments on commit 3fbe574

Please sign in to comment.