mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:40:05 +08:00
Silent jump to buffer
This commit is contained in:
parent
b16837623d
commit
d61a5118e7
@ -188,7 +188,7 @@ endfunction
|
||||
function! SpaceVim#layers#core#tabline#jump(id) abort
|
||||
if len(s:buffers) >= a:id
|
||||
let bid = s:buffers[a:id - 1]
|
||||
exe 'b' . bid
|
||||
exe 'silent b' . bid
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
@ -42,6 +42,7 @@ let s:shell_win_nr = 0
|
||||
function! s:open_default_shell() abort
|
||||
if s:shell_win_nr != 0 && getwinvar(s:shell_win_nr, '&buftype') ==# 'terminal' && &buftype !=# 'terminal'
|
||||
exe s:shell_win_nr . 'wincmd w'
|
||||
startinsert
|
||||
return
|
||||
endif
|
||||
if &buftype ==# 'terminal'
|
||||
@ -64,6 +65,7 @@ function! s:open_default_shell() abort
|
||||
exe 'te'
|
||||
let s:shell_win_nr = winnr()
|
||||
let w:shell_layer_win = 1
|
||||
startinsert
|
||||
else
|
||||
echo ':terminal is not supported in this version'
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user