motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit e64870df9c91d976e3d6358df9b39d6834c4ce8e (tree)
parent de602e3676ea0d7b03e0d651ac0e7d2057224e47
Author: Tim Pope <code@tpope.net>
Date:   Sun, 24 Oct 2010 13:40:07 -0400

Fix error after empty commit message

Diffstat:
Mplugin/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -697,7 +697,8 @@ function! s:Commit(args) abort endif return '' else - let error = get(readfile(errorfile),-2,'!') + let errors = readfile(errorfile) + let error = get(errors,-2,get(errors,-1,'!')) if error =~# "'false'\\.$" let args = a:args let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[se]|--edit|--interactive)%($| )','')