Mercurial > vim
diff src/testdir/test_popupwin.vim @ 19291:1d6bc6b31c2e v8.2.0204
patch 8.2.0204: crash when using winnr('j') in a popup window
Commit: https://github.com/vim/vim/commit/631ebc48149a0446dd9ffbddd3e2822252085885
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 3 22:15:26 2020 +0100
patch 8.2.0204: crash when using winnr('j') in a popup window
Problem: Crash when using winnr('j') in a popup window.
Solution: Do not search for neighbors in a popup window. (closes https://github.com/vim/vim/issues/5568)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 Feb 2020 22:30:03 +0100 |
parents | 2142fb624658 |
children | fcd5a2acbb3d |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2400,9 +2400,14 @@ func Test_popupwin_terminal_buffer() let origwin = win_getid() let ptybuf = term_start(&shell, #{hidden: 1}) - let winnr = popup_create(ptybuf, #{minwidth: 40, minheight: 10}) + let winid = popup_create(ptybuf, #{minwidth: 40, minheight: 10}) " Wait for shell to start sleep 200m + " Check this doesn't crash + call assert_equal(winnr(), winnr('j')) + call assert_equal(winnr(), winnr('k')) + call assert_equal(winnr(), winnr('h')) + call assert_equal(winnr(), winnr('l')) " Cannot quit while job is running call assert_fails('call feedkeys("\<C-W>:quit\<CR>", "xt")', 'E948:') call feedkeys("exit\<CR>", 'xt')