Quellcode durchsuchen

Ignore occasional error from Ruby 1.8.7

Related: https://bugs.ruby-lang.org/issues/1471
Junegunn Choi vor 11 Jahren
Ursprung
Commit
c3cf35abb5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -717,7 +717,7 @@ function! s:update_parallel(pull, todo, threads)
         } if running
       end
     end
-    threads.each { |t| t.join }
+    threads.each { |t| t.join rescue nil }
     mtx.synchronize { threads.clear }
     all.merge!(VIM::evaluate("s:extend(#{names.inspect})") || {})
     logh.call