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