Limit use of :terminal to nvim

This commit is contained in:
Samuel Roeca
2017-07-12 17:33:37 -04:00
committed by Tim Pope
parent be2ff98db5
commit 913fff1cea

View File

@@ -724,7 +724,7 @@ function! s:Git(bang, args) abort
let git .= ' --no-pager'
endif
let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
if exists(':terminal')
if exists(':terminal') && has('nvim')
let dir = s:repo().tree()
if expand('%') != ''
-tabedit %