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 6f07b1801288591b975474b8a1eda110db28d2af (tree)
parent 302f30c9243984b62434dbd03341903e54f3cd09
Author: Tim Pope <code@tpope.net>
Date:   Fri, 13 Jul 2018 15:14:09 -0400

Allow opting out of :terminal in Neovim

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

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -843,9 +843,9 @@ function! s:Git(bang, mods, args) abort let git .= ' --no-pager' endif let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=') - if exists(':terminal') && has('nvim') + if exists(':terminal') && has('nvim') && !get(g:, 'fugitive_force_bang_command') let dir = s:repo().tree() - if expand('%') != '' + if len(@%) -tabedit % else -tabnew