mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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.
8fcb60f961
This commit is contained in:
@@ -356,16 +356,17 @@ describe('Screen', function()
|
||||
end)
|
||||
|
||||
it('between windows', function()
|
||||
feed('k')
|
||||
command("split")
|
||||
screen:expect([[
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
foo barf bar barf egg^s |
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
|
|
||||
{2:[No Name] [+] }|
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
|
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
{3:[No Name] [+] }|
|
||||
|
|
||||
]])
|
||||
@@ -379,7 +380,7 @@ describe('Screen', function()
|
||||
{3:[No Name] [+] }|
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
foo barf bar barf egg^s |
|
||||
|
|
||||
foo {1:b} bar {1:b} eggs |
|
||||
{2:[No Name] [+] }|
|
||||
|
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user