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/popupmenu_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/popupmenu_spec.lua')
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index 9a8c5a5789..1e6ebb87f5 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -1198,20 +1198,20 @@ describe('builtin popupmenu', function() command("split") screen:expect([[ - xx | choice^ | + {1:~ }| {n:word }{1: }| {s:choice }{4: }| {n:text } | - {n:thing } | + {n:thing }{1: }| {3:[No Name] [+] }| {2:-- INSERT --} | ]]) meths.input_mouse('wheel', 'down', '', 0, 6, 15) screen:expect([[ - xx | choice^ | + {1:~ }| {n:word }{1: }| {s:choice }{4: }| {n:text } | |