#159 Change the condition for checking for Vim 8 features to work better in MacVim 7.
This commit is contained in:
parent
f9cbc69ce1
commit
ca18a80e3e
@ -12,12 +12,14 @@ let g:loaded_ale = 1
|
|||||||
|
|
||||||
" A flag for detecting if the required features are set.
|
" A flag for detecting if the required features are set.
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
let s:ale_has_required_features = has('timers')
|
let s:has_features = has('timers')
|
||||||
else
|
else
|
||||||
let s:ale_has_required_features = has('timers') && has('job') && has('channel')
|
" Check if Job and Channel functions are available, instead of the
|
||||||
|
" features. This works better on old MacVim versions.
|
||||||
|
let s:has_features = has('timers') && exists('*job_start') && exists('*ch_close_in')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !s:ale_has_required_features
|
if !s:has_features
|
||||||
echoerr 'ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel'
|
echoerr 'ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel'
|
||||||
echoerr 'Please update your editor appropriately.'
|
echoerr 'Please update your editor appropriately.'
|
||||||
finish
|
finish
|
||||||
|
Loading…
Reference in New Issue
Block a user