mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-07 12:44:27 +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}))
|
call add(w:indentLine_indentLineId, matchadd('Conceal', '^ ', 0, -1, {'conceal': g:indentLine_first_char}))
|
||||||
endif
|
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)
|
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}))
|
call add(w:indentLine_indentLineId, matchadd('Conceal', '^\s\+\zs\%'.i.'v ', 0, -1, {'conceal': g:indentLine_char}))
|
||||||
endfor
|
endfor
|
||||||
@@ -118,7 +118,7 @@ function! s:IndentLinesEnable()
|
|||||||
|
|
||||||
let g:mysyntaxfile = g:indentLine_mysyntaxfile
|
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
|
if g:indentLine_showFirstIndentLevel
|
||||||
execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char
|
execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char
|
||||||
@@ -194,16 +194,16 @@ endfunction
|
|||||||
|
|
||||||
"{{{1 function! s:Setup()
|
"{{{1 function! s:Setup()
|
||||||
function! s:Setup()
|
function! s:Setup()
|
||||||
if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
|
if index(g:indentLine_fileTypeExclude, &filetype) != -1
|
||||||
return
|
return
|
||||||
endif
|
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
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
for name in g:indentLine_bufNameExclude
|
for name in g:indentLine_bufNameExclude
|
||||||
if matchstr(bufname(''), name) is bufname('')
|
if matchstr(bufname(''), name) == bufname('')
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user