mirror of
https://github.com/neovim/neovim.git
synced 2025-11-20 09:06:31 +00:00
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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user