From 5b2c03d3a814f7b43e4fcdae11ebb3995a83f6cb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 23 Jul 2014 11:46:29 +0900 Subject: [PATCH] `R` to retry interrupted tasks as well --- plug.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index 7df3371..277d71e 100644 --- a/plug.vim +++ b/plug.vim @@ -502,11 +502,15 @@ function! s:update_impl(pull, args) abort for line in lines let name = get(matchlist(line, '^. \([^:]\+\):'), 1, '') if empty(name) || !has_key(printed, name) - let printed[name] = 1 call append('$', line) + if !empty(name) + let printed[name] = 1 + if line[0] == 'x' && index(s:prev_update.errors, name) < 0 + call add(s:prev_update.errors, name) + end + endif endif endfor - echoerr v:exception finally let &imd = imd endtry