Mercurial > vim
diff src/testdir/test_popupwin.vim @ 26300:0374f55a16be v8.2.3681
patch 8.2.3681: cannot drag popup window after click on a status line
Commit: https://github.com/vim/vim/commit/bfc5786a61693aaadc3e45f80a2f147c3a6711a3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 26 15:57:40 2021 +0000
patch 8.2.3681: cannot drag popup window after click on a status line
Problem: Cannot drag popup window after click on a status line. (Sergey
Vlasov)
Solution: Reset on_status_line. (closes #9221)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Nov 2021 17:00:04 +0100 |
parents | 7b07f361b1d4 |
children | 8b7f01b39d79 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -574,6 +574,13 @@ func Test_popup_drag() endfunc map <silent> <F5> :call test_setmouse(6, 21)<CR> map <silent> <F6> :call test_setmouse(7, 25)<CR> + func ClickAndDrag() + call feedkeys("\<F7>\<LeftMouse>\<LeftRelease>", "xt") + call feedkeys("\<F8>\<LeftMouse>\<F9>\<LeftDrag>\<LeftRelease>", "xt") + endfunc + map <silent> <F7> :call test_setmouse(5, 2)<CR> + map <silent> <F8> :call test_setmouse(3, 14)<CR> + map <silent> <F9> :call test_setmouse(3, 18)<CR> END call writefile(lines, 'XtestPopupDrag') let buf = RunVimInTerminal('-S XtestPopupDrag', #{rows: 10}) @@ -585,6 +592,10 @@ func Test_popup_drag() call term_sendkeys(buf, ":call Resize()\<CR>") call VerifyScreenDump(buf, 'Test_popupwin_drag_03', {}) + " dragging works after click on a status line + call term_sendkeys(buf, ":call ClickAndDrag()\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_drag_04', {}) + " clean up call StopVimInTerminal(buf) call delete('XtestPopupDrag')