mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Guard against missing output on :Gcommit success
This commit is contained in:
@@ -3111,7 +3111,7 @@ function! s:CommitCommand(line1, line2, range, count, bang, mods, reg, arg, args
|
||||
return '1' . after
|
||||
elseif empty(errors)
|
||||
let out = readfile(outfile)
|
||||
echo get(out, -1, '') =~# 'stash\|\d' ? get(out, -2, '') : out[-1]
|
||||
echo get(out, -1, '') =~# 'stash\|\d' ? get(out, -2, '') : get(out, -1, '')
|
||||
return after[1:-1]
|
||||
else
|
||||
echo join(errors, "\n")
|
||||
|
||||
Reference in New Issue
Block a user