diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-09 23:12:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 23:12:33 +0100 |
commit | 3cb89cafe3e99fc64f6fd6fff47831d1a9331b4e (patch) | |
tree | d1425262042fabbf9c3c575270cc7ab5f73ebd2e /test/functional/ui/mouse_spec.lua | |
parent | 6eca56c6c5a994be77ad6fd28a3639d963cb7ffc (diff) | |
download | rneovim-3cb89cafe3e99fc64f6fd6fff47831d1a9331b4e.tar.gz rneovim-3cb89cafe3e99fc64f6fd6fff47831d1a9331b4e.tar.bz2 rneovim-3cb89cafe3e99fc64f6fd6fff47831d1a9331b4e.zip |
vim-patch:8.1.0994: fix relative cursor position #9676
Problem: Relative cursor position is not calculated correctly.
Solution: Always set topline, also when window is one line only.
(Robert Webb) Add more info to getwininfo() for testing.
https://github.com/vim/vim/commit/8fcb60f961bdd134599fb016c6537fd496e800f5
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index 7805ed3cb9..c1a350dc34 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -649,13 +649,14 @@ describe('ui/mouse/input', function() mouse scrolling ]]) screen:try_resize(53, 14) + feed('k') feed_command('sp', 'vsp') screen:expect([[ lines {4:│}lines | to {4:│}to | test {4:│}test | - mouse scrolling {4:│}mouse scrolling | - ^ {4:│} | + ^mouse scrolling {4:│}mouse scrolling | + {4:│} | {0:~ }{4:│}{0:~ }| {5:[No Name] [+] }{4:[No Name] [+] }| to | @@ -672,8 +673,8 @@ describe('ui/mouse/input', function() feed('<ScrollWheelDown><0,0>') end screen:expect([[ - mouse scrolling {4:│}lines | - ^ {4:│}to | + ^mouse scrolling {4:│}lines | + {4:│}to | {0:~ }{4:│}test | {0:~ }{4:│}mouse scrolling | {0:~ }{4:│} | @@ -693,8 +694,8 @@ describe('ui/mouse/input', function() feed('<ScrollWheelUp><27,0>') end screen:expect([[ - mouse scrolling {4:│}text | - ^ {4:│}with | + ^mouse scrolling {4:│}text | + {4:│}with | {0:~ }{4:│}many | {0:~ }{4:│}lines | {0:~ }{4:│}to | @@ -715,8 +716,8 @@ describe('ui/mouse/input', function() feed('<ScrollWheelUp><27,7><ScrollWheelUp>') end screen:expect([[ - mouse scrolling {4:│}text | - ^ {4:│}with | + ^mouse scrolling {4:│}text | + {4:│}with | {0:~ }{4:│}many | {0:~ }{4:│}lines | {0:~ }{4:│}to | |