Skip to content

Commit

Permalink
Async.Promise: Check features rather than versions for availability
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Dec 27, 2017
1 parent b34d85f commit 337e8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vital/__vital__/Async/Promise.vim
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function! s:reject(...) abort
endfunction

function! s:is_available() abort
return has('nvim') || v:version >= 800
return has('lambda') && has('timers')
endfunction

function! s:is_promise(maybe_promise) abort
Expand Down

0 comments on commit 337e8c4

Please sign in to comment.