fix(statusline): also allow right click when 'mousemodel' is "popup*"

Problem:    The 'statusline'-format ui elements do not receive right
            click events when "mousemodel" is "popup*"
Solution:   Do not draw popupmenu and handle click event instead.
This commit is contained in:
Luuk van Baal
2023-04-25 03:35:42 +02:00
parent c1331a65dd
commit 6b5b6e5e07
4 changed files with 234 additions and 224 deletions

View File

@@ -1840,16 +1840,6 @@ describe('ui/mouse/input', function()
eq({2, 9}, meths.win_get_cursor(0))
eq('', funcs.getreg('"'))
-- Try clicking on the status line
funcs.setreg('"', '')
meths.win_set_cursor(0, {1, 9})
feed('vee')
meths.input_mouse('right', 'press', '', 0, 5, 1)
meths.input_mouse('right', 'release', '', 0, 5, 1)
feed('<Down><CR>')
eq({1, 9}, meths.win_get_cursor(0))
eq('ran away', funcs.getreg('"'))
-- Try clicking outside the window
funcs.setreg('"', '')
meths.win_set_cursor(0, {2, 1})