mirror of
https://github.com/neovim/neovim.git
synced 2026-09-01 20:03:47 +00:00
vim-patch:8.1.2315: switchbuf=uselast #11480
Problem: Not always using the right window when jumping to an error.
Solution: Add the "uselast" flag in 'switchbuf'. (closes vim/vim#1652)
539aa6b25e
This commit is contained in:
committed by
Justin M. Keyes
parent
f33371c03f
commit
0a9ecf460a
@@ -1642,6 +1642,14 @@ func Test_switchbuf()
|
||||
call assert_equal(3, tabpagenr('$'))
|
||||
tabfirst | enew | tabonly | only
|
||||
|
||||
set switchbuf=uselast
|
||||
split
|
||||
let last_winid = win_getid()
|
||||
copen
|
||||
exe "normal 1G\<CR>"
|
||||
call assert_equal(last_winid, win_getid())
|
||||
enew | only
|
||||
|
||||
set switchbuf=
|
||||
edit Xqftestfile1
|
||||
let file1_winid = win_getid()
|
||||
|
||||
Reference in New Issue
Block a user