mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-08 13:04:45 +08:00
Check for buffer variable existence before accessing
Closes: https://github.com/Yggdroot/indentLine/issues/252
This commit is contained in:
@@ -107,8 +107,12 @@ endfunction
|
|||||||
|
|
||||||
function! s:ResetConcealOption()
|
function! s:ResetConcealOption()
|
||||||
if exists("b:indentLine_ConcealOptionSet") && b:indentLine_ConcealOptionSet
|
if exists("b:indentLine_ConcealOptionSet") && b:indentLine_ConcealOptionSet
|
||||||
let &l:concealcursor = b:indentLine_original_concealcursor
|
if exists("b:indentLine_original_concealcursor")
|
||||||
let &l:conceallevel = b:indentLine_original_conceallevel
|
let &l:concealcursor = b:indentLine_original_concealcursor
|
||||||
|
endif
|
||||||
|
if exists("b:indentLine_original_conceallevel")
|
||||||
|
let &l:conceallevel = b:indentLine_original_conceallevel
|
||||||
|
endif
|
||||||
let b:indentLine_ConcealOptionSet = 0
|
let b:indentLine_ConcealOptionSet = 0
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user