Add sy#buffer_is_active()

Mostly an API function that can be used by other plugins.
This commit is contained in:
Marco Hinz 2016-01-15 12:56:20 +01:00
parent e8530b2d57
commit e73a0114f3

View File

@ -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