mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-08 21:14:45 +08:00
fix issue #293
No such group or event: OptionSet diff call s:ToggleOnDiff()
This commit is contained in:
@@ -391,7 +391,9 @@ augroup indentLine
|
|||||||
endif
|
endif
|
||||||
autocmd BufWinEnter * call s:IndentLinesDisable() | call s:LeadingSpaceDisable() | call s:Setup()
|
autocmd BufWinEnter * call s:IndentLinesDisable() | call s:LeadingSpaceDisable() | call s:Setup()
|
||||||
autocmd FileType * call s:Disable()
|
autocmd FileType * call s:Disable()
|
||||||
|
if exists("##OptionSet")
|
||||||
autocmd OptionSet diff call s:ToggleOnDiff()
|
autocmd OptionSet diff call s:ToggleOnDiff()
|
||||||
|
endif
|
||||||
autocmd VimEnter * noautocmd windo call s:DisableOnDiff()
|
autocmd VimEnter * noautocmd windo call s:DisableOnDiff()
|
||||||
else
|
else
|
||||||
autocmd BufWinEnter * call s:Setup()
|
autocmd BufWinEnter * call s:Setup()
|
||||||
@@ -401,7 +403,9 @@ augroup indentLine
|
|||||||
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
|
autocmd BufUnload * let b:indentLine_enabled = 0 | let b:indentLine_leadingSpaceEnabled = 0
|
||||||
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload
|
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim doautocmd indentLine BufUnload
|
||||||
autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call s:Setup()
|
autocmd FileChangedShellPost * doautocmd indentLine BufUnload | call s:Setup()
|
||||||
|
if exists("##OptionSet")
|
||||||
autocmd OptionSet diff call s:ToggleOnDiff()
|
autocmd OptionSet diff call s:ToggleOnDiff()
|
||||||
|
endif
|
||||||
autocmd VimEnter * noautocmd windo call s:DisableOnDiff()
|
autocmd VimEnter * noautocmd windo call s:DisableOnDiff()
|
||||||
endif
|
endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|||||||
Reference in New Issue
Block a user