mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-09-19 02:03:24 +08:00
change "is" to "=="
This commit is contained in:
@@ -100,7 +100,7 @@ function! s:IndentLinesEnable()
|
||||
call add(w:indentLine_indentLineId, matchadd('Conceal', '^ ', 0, -1, {'conceal': g:indentLine_first_char}))
|
||||
endif
|
||||
|
||||
let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth
|
||||
let space = &l:shiftwidth == 0 ? &l:tabstop : &l:shiftwidth
|
||||
for i in range(space+1, space * g:indentLine_indentLevel + 1, space)
|
||||
call add(w:indentLine_indentLineId, matchadd('Conceal', '^\s\+\zs\%'.i.'v ', 0, -1, {'conceal': g:indentLine_char}))
|
||||
endfor
|
||||
@@ -118,7 +118,7 @@ function! s:IndentLinesEnable()
|
||||
|
||||
let g:mysyntaxfile = g:indentLine_mysyntaxfile
|
||||
|
||||
let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth
|
||||
let space = &l:shiftwidth == 0 ? &l:tabstop : &l:shiftwidth
|
||||
|
||||
if g:indentLine_showFirstIndentLevel
|
||||
execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char
|
||||
@@ -194,16 +194,16 @@ endfunction
|
||||
|
||||
"{{{1 function! s:Setup()
|
||||
function! s:Setup()
|
||||
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
|
||||
if index(g:indentLine_fileTypeExclude, &filetype) != -1
|
||||
return
|
||||
endif
|
||||
|
||||
if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1
|
||||
if len(g:indentLine_fileType) != 0 && index(g:indentLine_fileType, &filetype) == -1
|
||||
return
|
||||
endif
|
||||
|
||||
for name in g:indentLine_bufNameExclude
|
||||
if matchstr(bufname(''), name) is bufname('')
|
||||
if matchstr(bufname(''), name) == bufname('')
|
||||
return
|
||||
endif
|
||||
endfor
|
||||
|
||||
Reference in New Issue
Block a user