diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-27 03:10:55 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-01 14:47:49 +0100 |
commit | 937e54f86599ab448e6497955e2b4dddf6347e88 (patch) | |
tree | e3ba431fb1480d4dde8362604139a36fb0d576bb /test/functional/ui/mouse_spec.lua | |
parent | 504693ce66e61e2976b0af2930177a07bafbe6f3 (diff) | |
download | rneovim-937e54f86599ab448e6497955e2b4dddf6347e88.tar.gz rneovim-937e54f86599ab448e6497955e2b4dddf6347e88.tar.bz2 rneovim-937e54f86599ab448e6497955e2b4dddf6347e88.zip |
terminal: Keep cursor position.
Let the terminal dictate the normal-mode cursor position. This will be
disorienting sometimes, but it is closer to what users expect vs always
going to the last line.
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index 17d949825a..b2fbedfb5e 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -658,7 +658,7 @@ describe('Mouse input', function() {4:[No Name] [+] }| :vsp | ]]) - feed('<MouseUp><0,0>') + feed('<ScrollWheelDown><0,0>') screen:expect([[ mouse scrolling {4:|}lines | ^ {4:|}to | @@ -675,7 +675,7 @@ describe('Mouse input', function() {4:[No Name] [+] }| | ]]) - feed('<MouseDown><27,0>') + feed('<ScrollWheelUp><27,0>') screen:expect([[ mouse scrolling {4:|}text | ^ {4:|}with | @@ -692,7 +692,7 @@ describe('Mouse input', function() {4:[No Name] [+] }| | ]]) - feed('<MouseDown><27,7><MouseDown>') + feed('<ScrollWheelUp><27,7><ScrollWheelUp>') screen:expect([[ mouse scrolling {4:|}text | ^ {4:|}with | |