mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-21 11:21:17 +08:00
fix an issue that no indentLine when split window
This commit is contained in:
@@ -335,6 +335,9 @@ augroup indentLine
|
|||||||
autocmd!
|
autocmd!
|
||||||
if g:indentLine_newVersion
|
if g:indentLine_newVersion
|
||||||
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
|
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
|
||||||
|
if exists("##WinNew")
|
||||||
|
autocmd WinNew * call <SID>Setup()
|
||||||
|
endif
|
||||||
autocmd BufWinEnter * call <SID>IndentLinesDisable() | call <SID>LeadingSpaceDisable() | call <SID>Setup()
|
autocmd BufWinEnter * call <SID>IndentLinesDisable() | call <SID>LeadingSpaceDisable() | call <SID>Setup()
|
||||||
autocmd FileType * call <SID>Disable()
|
autocmd FileType * call <SID>Disable()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user