mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-05-11 09:08:26 +08:00
fix issue #103
This commit is contained in:
@@ -116,10 +116,11 @@ endfunction
|
|||||||
|
|
||||||
"{{{1 function! s:IndentLinesDisable()
|
"{{{1 function! s:IndentLinesDisable()
|
||||||
function! s:IndentLinesDisable()
|
function! s:IndentLinesDisable()
|
||||||
if exists("b:indentLine_enabled") && b:indentLine_enabled
|
let b:indentLine_enabled = 0
|
||||||
let b:indentLine_enabled = 0
|
try
|
||||||
syntax clear IndentLine
|
syntax clear IndentLine
|
||||||
endif
|
catch /^Vim\%((\a\+)\)\=:E28/ " catch error E28
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"{{{1 function! s:IndentLinesToggle()
|
"{{{1 function! s:IndentLinesToggle()
|
||||||
@@ -189,10 +190,11 @@ endfunction
|
|||||||
|
|
||||||
"{{{1 function! s:LeadingSpaceDisable()
|
"{{{1 function! s:LeadingSpaceDisable()
|
||||||
function! s:LeadingSpaceDisable()
|
function! s:LeadingSpaceDisable()
|
||||||
if exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled
|
let b:indentLine_leadingSpaceEnabled = 0
|
||||||
let b:indentLine_leadingSpaceEnabled = 0
|
try
|
||||||
syntax clear IndentLineLeadingSpace
|
syntax clear IndentLineLeadingSpace
|
||||||
endif
|
catch /^Vim\%((\a\+)\)\=:E28/ " catch error E28
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"{{{1 function! s:LeadingSpaceToggle()
|
"{{{1 function! s:LeadingSpaceToggle()
|
||||||
|
|||||||
Reference in New Issue
Block a user