From 0f3bd51d4478e12380fe83186e21439af91c3b20 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 10 Apr 2016 20:24:09 +0900 Subject: [PATCH] Minor refactoring --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index c810566..2140220 100644 --- a/plug.vim +++ b/plug.vim @@ -977,7 +977,7 @@ function! s:update_finish() call s:log4(name, 'Updating submodules. This may take a while.') let out .= s:bang('git submodule update --init --recursive 2>&1', spec.dir) endif - let msg = printf('%s %s: %s', v:shell_error ? 'x': '-', name, get(s:lines(out), -1, '')) + let msg = printf('%s %s: %s', v:shell_error ? 'x': '-', name, s:lastline(out)) if v:shell_error call add(s:update.errors, name) call s:regress_bar()