From fb3c603ce6bfbba9efe311a147cb5ce61b0f9b0a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 30 Jul 2019 14:39:16 -0400 Subject: [PATCH] Always use temp file for :Git --no-pager --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 236296b..d555b68 100644 --- 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)