diff options
| author | Daniel Hahler <git@thequod.de> | 2019-11-29 18:57:27 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-29 09:57:27 -0800 |
| commit | 0a9ecf460a33ad1ee2b756d2ef0417e99bdfb988 (patch) | |
| tree | 02491d08f4bbcc5c399ee28eb785c5fd4b357dcb /src/nvim/testdir/test_quickfix.vim | |
| parent | f33371c03f526ecbe2d6a1bec744fa37c1b2640c (diff) | |
| download | rneovim-0a9ecf460a33ad1ee2b756d2ef0417e99bdfb988.tar.gz rneovim-0a9ecf460a33ad1ee2b756d2ef0417e99bdfb988.tar.bz2 rneovim-0a9ecf460a33ad1ee2b756d2ef0417e99bdfb988.zip | |
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)
https://github.com/vim/vim/commit/539aa6b25eaea91dfd1a175cd053c0f259fa2e58
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 15cbf52cb5..60ffb11793 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -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() |