Fix commands on Vim without <mods>

Closes https://github.com/tpope/vim-fugitive/issues/1282
This commit is contained in:
Tim Pope 2019-07-09 19:25:26 -04:00
parent 5f9602e12f
commit de3f6d977c

View File

@ -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