commit c545a7d45167b5e622fbbf905a4b0a11b2bd193e (tree)
parent 47cbfc00ccc2d4b951bef8ccfb3b8f3cc83b4e58
Author: Tim Pope <code@tpope.net>
Date: Sun, 26 Jun 2022 21:36:58 -0400
Correctly handle :Gedit + +SecondCommand
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -5981,6 +5981,9 @@ function! s:OpenParse(string, wants_cmd) abort
while !empty(args)
if args[0] =~# '^++'
call add(opts, ' ' . s:PlusEscape(remove(args, 0)))
+ elseif a:wants_cmd && args[0] ==# '+'
+ call remove(args, 0)
+ call add(cmds, '$')
elseif a:wants_cmd && args[0] =~# '^+'
call add(cmds, remove(args, 0)[1:-1])
else