Fix argument handling for :Gmerge
This shouldn't matter in practice since :Gmerge doesn't accept path arguments, but may as well do the right thing.
This commit is contained in:
parent
cecfc06be3
commit
f71a38db7d
@ -3162,8 +3162,8 @@ function! s:RebaseEdit(cmd, dir) abort
|
||||
endfunction
|
||||
|
||||
function! s:Merge(cmd, bang, mods, args, ...) abort
|
||||
let args = s:SplitExpand(a:args)
|
||||
let dir = a:0 ? a:1 : s:Dir()
|
||||
let args = s:SplitExpand(a:args, s:Tree(dir))
|
||||
let mods = s:Mods(a:mods)
|
||||
if a:cmd =~# '^rebase' && s:HasOpt(args, '-i', '--interactive')
|
||||
let cmd = fugitive#Prepare(dir, '-c', 'sequence.editor=sh ' . s:RebaseSequenceAborter(), 'rebase') . ' ' . s:shellesc(args)
|
||||
|
Loading…
Reference in New Issue
Block a user