Fix commands on Vim without <mods>
Closes https://github.com/tpope/vim-fugitive/issues/1282
This commit is contained in:
parent
5f9602e12f
commit
de3f6d977c
@ -79,7 +79,7 @@ endfunction
|
||||
|
||||
function! s:Mods(mods, ...) abort
|
||||
let mods = substitute(a:mods, '\C<mods>', '', '')
|
||||
let mods = mods =~# '\S$' ? a:mods . ' ' : a:mods
|
||||
let mods = mods =~# '\S$' ? mods . ' ' : mods
|
||||
if a:0 && mods !~# '\<\%(aboveleft\|belowright\|leftabove\|rightbelow\|topleft\|botright\|tab\)\>'
|
||||
let mods = a:1 . ' ' . mods
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user