Add sy#buffer_is_active()
Mostly an API function that can be used by other plugins.
This commit is contained in:
parent
e8530b2d57
commit
e73a0114f3
@ -142,3 +142,8 @@ function! sy#toggle() abort
|
|||||||
call sy#disable()
|
call sy#disable()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Function: #buffer_is_active {{{1
|
||||||
|
function! sy#buffer_is_active()
|
||||||
|
return (!exists('b:sy') || !b:sy.active) ? 0 : 1
|
||||||
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user