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 d27dbc40d4264525b1c812482bf0efecfed53f28 (tree)
parent 50cf1b3bd110f8c25b3b89029630989af7f5faa5
Author: Tim Pope <code@tpope.net>
Date:   Sun, 27 Jan 2019 07:52:59 -0500

Respect 'splitbelow' in :Gstatus

References https://github.com/tpope/vim-fugitive/issues/1169

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1909,7 +1909,7 @@ function! s:Status(bang, count, mods) abort try let mods = a:mods ==# '<mods>' || empty(a:mods) ? '' : a:mods . ' ' if mods !~# 'aboveleft\|belowright\|leftabove\|rightbelow\|topleft\|botright' - let mods = 'topleft ' . mods + let mods = (&splitbelow ? 'botright ' : 'topleft ') . mods endif let file = fugitive#Find(':') let arg = ' +setl\ foldmethod=syntax\ foldlevel=1\|let\ w:fugitive_status=FugitiveGitDir() ' .