Mercurial > vim
diff src/testdir/test_quickfix.vim @ 18646:394abd397e15 v8.1.2315
patch 8.1.2315: not always using the right window when jumping to an error
Commit: https://github.com/vim/vim/commit/539aa6b25eaea91dfd1a175cd053c0f259fa2e58
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 17 18:09:38 2019 +0100
patch 8.1.2315: not always using the right window when jumping to an error
Problem: Not always using the right window when jumping to an error.
Solution: Add the "uselast" flag in 'switchbuf'. (closes https://github.com/vim/vim/issues/1652)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Nov 2019 18:15:03 +0100 |
parents | dfa87465287e |
children | 022deb0adec9 |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -1664,6 +1664,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()