diff options
author | luukvbaal <luukvbaal@gmail.com> | 2023-04-25 05:05:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 11:05:04 +0800 |
commit | a4b2400804355e99813f39a6b38d8f38667f8bdd (patch) | |
tree | ed515da7d5c9ffcd46e06822fb1c076aa9c4920f /test/functional/ui/mouse_spec.lua | |
parent | bab4bcdefbdad7f175f7f31c230de3d066963542 (diff) | |
download | rneovim-a4b2400804355e99813f39a6b38d8f38667f8bdd.tar.gz rneovim-a4b2400804355e99813f39a6b38d8f38667f8bdd.tar.bz2 rneovim-a4b2400804355e99813f39a6b38d8f38667f8bdd.zip |
fix(statusline): also allow right click when 'mousemodel' is "popup*" (#23258)
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.
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index f705678bd5..c7f6861c12 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -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}) |