diff --git a/autoload/dispatch/neovim.vim b/autoload/dispatch/neovim.vim index 560a56f..20174fe 100644 --- a/autoload/dispatch/neovim.vim +++ b/autoload/dispatch/neovim.vim @@ -65,11 +65,13 @@ function! dispatch#neovim#handle(request) abort let opts.buf_id = bufnr('%') call termopen(cmd, opts) call s:SaveCurrentBufferPid(a:request) + execute "normal G" execute 'wincmd p' else execute 'tabnew' call termopen(cmd, opts) call s:SaveCurrentBufferPid(a:request) + execute "normal G" if bg execute 'tabprev' else