mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 20:13:46 -05:00
Limit use of :terminal to nvim
This commit is contained in:
@@ -724,7 +724,7 @@ function! s:Git(bang, args) abort
|
|||||||
let git .= ' --no-pager'
|
let git .= ' --no-pager'
|
||||||
endif
|
endif
|
||||||
let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
|
let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
|
||||||
if exists(':terminal')
|
if exists(':terminal') && has('nvim')
|
||||||
let dir = s:repo().tree()
|
let dir = s:repo().tree()
|
||||||
if expand('%') != ''
|
if expand('%') != ''
|
||||||
-tabedit %
|
-tabedit %
|
||||||
|
|||||||
Reference in New Issue
Block a user