diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-01-01 20:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 20:04:09 +0100 |
commit | 90f619f140f0736f67fef796d58203fe261c43af (patch) | |
tree | b6ee6639b7ac844a6aa18104591902cf416908ab /test/functional/ui/mouse_spec.lua | |
parent | f3a8c930a4b901c5313701849e7010f098bf22e6 (diff) | |
parent | 6db86cb2d3d4ca152f156dc07362f8796150fae0 (diff) | |
download | rneovim-90f619f140f0736f67fef796d58203fe261c43af.tar.gz rneovim-90f619f140f0736f67fef796d58203fe261c43af.tar.bz2 rneovim-90f619f140f0736f67fef796d58203fe261c43af.zip |
Merge pull request #13592 from bfredl/setmouse
ui: make 'mouse' handling in external UI more consistent
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index a741136111..7bca741ae3 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -45,13 +45,33 @@ describe('ui/mouse/input', function() it('single left click moves cursor', function() feed('<LeftMouse><2,1>') - screen:expect([[ + screen:expect{grid=[[ testing | mo^use | support and selection | {0:~ }| | + ]], mouse_enabled=true} + feed('<LeftMouse><0,0>') + screen:expect([[ + ^testing | + mouse | + support and selection | + {0:~ }| + | ]]) + end) + + it("in external ui works with unset 'mouse'", function() + meths.set_option('mouse', '') + feed('<LeftMouse><2,1>') + screen:expect{grid=[[ + testing | + mo^use | + support and selection | + {0:~ }| + | + ]], mouse_enabled=false} feed('<LeftMouse><0,0>') screen:expect([[ ^testing | |