From d27dbc40d4264525b1c812482bf0efecfed53f28 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 27 Jan 2019 07:52:59 -0500 Subject: [PATCH] Respect 'splitbelow' in :Gstatus References https://github.com/tpope/vim-fugitive/issues/1169 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f1f3818..0b67db9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1909,7 +1909,7 @@ function! s:Status(bang, count, mods) abort try let mods = a: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() ' .