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 de3f6d977c82c5c9ff5f3e0bd9ce3cf86cfda464 (tree)
parent 5f9602e12f27bd59e38a0814c524c7c385ef4137
Author: Tim Pope <code@tpope.net>
Date:   Tue,  9 Jul 2019 19:25:26 -0400

Fix commands on Vim without <mods>

Closes https://github.com/tpope/vim-fugitive/issues/1282

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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