mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-10-25 07:07:22 +08:00
fix an issue that indentLine disappear when the file is changed outside
This commit is contained in:
1 parent
4b654ecbba
commit
ce872bd004
1 file changed
+2
-1
@@ -199,7 +199,8 @@ augroup indentLine
|
||||
\ 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 doautoall indentLine BufUnload
|
||||
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload
|
||||
autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call <SID>Setup()
|
||||
augroup END
|
||||
|
||||
"{{{1 commands
|
||||
|
||||
Reference in new issue
Block a user