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 fb3c603ce6bfbba9efe311a147cb5ce61b0f9b0a (tree)
parent 44ade58ed509f7b21608ae061223d4ffef1e19d8
Author: Tim Pope <code@tpope.net>
Date:   Tue, 30 Jul 2019 14:39:16 -0400

Always use temp file for :Git --no-pager

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2087,7 +2087,7 @@ function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abor let cmd = s:StatusCommand(a:line1, a:line2, a:range, a:count, a:bang, a:mods, a:reg, '', []) return empty(cmd) ? 'exe' : cmd endif - if a:bang + if a:bang || a:args[0] =~# '^-P$\|^--no-pager$' return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, a:args, a:dir) endif let git = s:UserCommandList(a:dir)