Skip to content

Commit

Permalink
Move bool logic to let python.
Browse files Browse the repository at this point in the history
  • Loading branch information
starcraftman committed May 6, 2015
1 parent efa5a32 commit 4d97f35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,10 @@ function! s:update_impl(pull, force, args) abort
echohl None
endif

let python = (has('python') || has('python3')) && !s:is_win && !has('win32unix')
let python = (has('python') || has('python3'))
\ && (!s:nvim || (has('nvim') && has('vim_starting'))) && !s:is_win && !has('win32unix')
let ruby = has('ruby') && !has('nvim') && (v:version >= 703 || v:version == 702 && has('patch374'))
echomsg 'py: ' . python . ' rb: ' . ruby

let s:update = {
\ 'start': reltime(),
Expand Down Expand Up @@ -777,7 +779,7 @@ function! s:update_impl(pull, force, args) abort
\ map(split(split(pyv)[0], '\.'), 'str2nr(v:val)'), [2, 6])
endif

if (python || ruby) && (!s:nvim || (has('nvim') && has('vim_starting'))) && s:update.threads > 1
if (python || ruby) && s:update.threads > 1
try
let imd = &imd
if s:mac_gui
Expand Down

0 comments on commit 4d97f35

Please sign in to comment.