Fix Ruby installer for Ruby 1.8.7 (#31)
This commit is contained in:
parent
dae0540a11
commit
344f80aedb
1 changed files with 4 additions and 4 deletions
8
plug.vim
8
plug.vim
|
@ -550,7 +550,7 @@ function! s:update_parallel(pull, todo, threads)
|
||||||
buffer = ''
|
buffer = ''
|
||||||
loop do
|
loop do
|
||||||
char = readchar rescue return
|
char = readchar rescue return
|
||||||
if SEP.include? char
|
if SEP.include? char.chr
|
||||||
buffer << $/
|
buffer << $/
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
@ -612,7 +612,7 @@ function! s:update_parallel(pull, todo, threads)
|
||||||
lnum = 4 if ing && lnum > maxy
|
lnum = 4 if ing && lnum > maxy
|
||||||
end
|
end
|
||||||
result.each_with_index do |line, offset|
|
result.each_with_index do |line, offset|
|
||||||
$curbuf.append (lnum || 4) - 1 + offset, line.gsub(/\e\[./, '').chomp
|
$curbuf.append((lnum || 4) - 1 + offset, line.gsub(/\e\[./, '').chomp)
|
||||||
end
|
end
|
||||||
logh.call
|
logh.call
|
||||||
end
|
end
|
||||||
|
@ -647,7 +647,7 @@ function! s:update_parallel(pull, todo, threads)
|
||||||
children = pids
|
children = pids
|
||||||
until children.empty?
|
until children.empty?
|
||||||
children = children.map { |pid|
|
children = children.map { |pid|
|
||||||
`pgrep -P #{pid}`.lines.map(&:chomp)
|
`pgrep -P #{pid}`.lines.map { |l| l.chomp }
|
||||||
}.flatten
|
}.flatten
|
||||||
pids += children
|
pids += children
|
||||||
end
|
end
|
||||||
|
@ -717,7 +717,7 @@ function! s:update_parallel(pull, todo, threads)
|
||||||
} if running
|
} if running
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
threads.each(&:join)
|
threads.each { |t| t.join }
|
||||||
mtx.synchronize { threads.clear }
|
mtx.synchronize { threads.clear }
|
||||||
all.merge!(VIM::evaluate("s:extend(#{names.inspect})") || {})
|
all.merge!(VIM::evaluate("s:extend(#{names.inspect})") || {})
|
||||||
logh.call
|
logh.call
|
||||||
|
|
Loading…
Reference in a new issue