mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
vim-patch:9.0.1493: popup menu position wrong in window with toolbar
Problem: Popup menu position wrong in window with toolbar. Solution: Take the window toolbar into account when positioning the popup menu. (closes vim/vim#12308)4e1ca0d9a6
Fixed in the previous commit. Test only. (cherry picked from commitaca226d728
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
756b74758d
commit
11a0fc9644
@@ -4508,6 +4508,34 @@ describe('builtin popupmenu', function()
|
||||
{1:~ }|
|
||||
pasted |
|
||||
]])
|
||||
|
||||
-- Add a window toolbar to the window and check the :popup menu position.
|
||||
command('setlocal winbar=TEST')
|
||||
feed('/X<CR>:popup PopUp<CR>')
|
||||
screen:expect([[
|
||||
{2:TEST }|
|
||||
one two three four five |
|
||||
and one two {7:^X}three four five |
|
||||
one more tw{n: Undo } |
|
||||
{1:~ }{n: }{1: }|
|
||||
{1:~ }{n: Paste }{1: }|
|
||||
{1:~ }{n: }{1: }|
|
||||
{1:~ }{n: Select Word }{1: }|
|
||||
{1:~ }{n: Select Sentence }{1: }|
|
||||
{1:~ }{n: Select Paragraph }{1: }|
|
||||
{1:~ }{n: Select Line }{1: }|
|
||||
{1:~ }{n: Select Block }{1: }|
|
||||
{1:~ }{n: Select All }{1: }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
:popup PopUp |
|
||||
]])
|
||||
|
||||
feed('<Esc>')
|
||||
end)
|
||||
|
||||
describe('"kind" and "menu"', function()
|
||||
|
Reference in New Issue
Block a user