mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-07 20:54:26 +08:00
fix issue #16
This commit is contained in:
@@ -102,7 +102,7 @@ endfunction
|
||||
|
||||
"{{{1 function! <SID>Setup()
|
||||
function! <SID>Setup()
|
||||
if !exists("b:indentLine_set")
|
||||
if !getbufvar("%","&hidden") || !exists("b:indentLine_set")
|
||||
let b:indentLine_set = 1
|
||||
|
||||
if index(g:indentLine_fileTypeExclude, &ft) != -1
|
||||
@@ -128,8 +128,8 @@ function! <SID>Setup()
|
||||
endfunction
|
||||
|
||||
"{{{1 commands
|
||||
exec 'autocmd BufWinEnter * call <SID>Setup()'
|
||||
exec 'autocmd BufRead,ColorScheme * call <SID>InitColor()'
|
||||
autocmd BufWinEnter * call <SID>Setup()
|
||||
autocmd BufRead,ColorScheme * call <SID>InitColor()
|
||||
|
||||
command! -nargs=? IndentLinesReset call <SID>ResetWidth(<f-args>)
|
||||
command! IndentLinesToggle call <SID>IndentLinesToggle()
|
||||
|
||||
Reference in New Issue
Block a user