mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-20 02:41:14 +08:00
fix some issue
This commit is contained in:
@@ -137,7 +137,7 @@ function! s:Setup()
|
||||
|
||||
if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1
|
||||
return
|
||||
end
|
||||
endif
|
||||
|
||||
for name in g:indentLine_bufNameExclude
|
||||
if matchstr(bufname(''), name) is bufname('')
|
||||
@@ -200,7 +200,9 @@ augroup indentLine
|
||||
autocmd!
|
||||
autocmd BufWinEnter * call <SID>Setup()
|
||||
autocmd BufRead,BufNewFile,ColorScheme,Syntax * call <SID>InitColor()
|
||||
autocmd BufUnload * unlet! b:indentLine_enabled
|
||||
autocmd BufUnload * unlet! b:indentLine_enabled | unlet! b:indentLine_leadingSpaceEnabled
|
||||
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim unlet! b:indentLine_enabled
|
||||
autocmd SourcePre $VIMRUNTIME/syntax/nosyntax.vim unlet! b:indentLine_leadingSpaceEnabled
|
||||
augroup END
|
||||
|
||||
"{{{1 commands
|
||||
|
||||
Reference in New Issue
Block a user