mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Make :Git open a tab to the left for :terminal
- Users of multiple tabs will find themselves back where they started when the terminal closes, instead of in the next tab over
This commit is contained in:
@@ -704,7 +704,7 @@ function! s:Git(bang, args) abort
|
|||||||
let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
|
let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
|
||||||
if exists(':terminal')
|
if exists(':terminal')
|
||||||
let dir = s:repo().tree()
|
let dir = s:repo().tree()
|
||||||
tabedit %
|
-tabedit %
|
||||||
execute 'lcd' fnameescape(dir)
|
execute 'lcd' fnameescape(dir)
|
||||||
execute 'terminal' git args
|
execute 'terminal' git args
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user