mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 06:20:53 +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:
@@ -39,10 +39,11 @@ describe(':terminal', function()
|
||||
it('does not change size on WinEnter', function()
|
||||
if helpers.pending_win32(pending) then return end
|
||||
feed('<c-\\><c-n>')
|
||||
feed('k')
|
||||
feed_command('2split')
|
||||
screen:expect([[
|
||||
tty ready |
|
||||
^rows: 5, cols: 50 |
|
||||
^tty ready |
|
||||
rows: 5, cols: 50 |
|
||||
========== |
|
||||
tty ready |
|
||||
rows: 5, cols: 50 |
|
||||
@@ -57,8 +58,8 @@ describe(':terminal', function()
|
||||
tty ready |
|
||||
rows: 5, cols: 50 |
|
||||
========== |
|
||||
tty ready |
|
||||
^rows: 5, cols: 50 |
|
||||
^tty ready |
|
||||
rows: 5, cols: 50 |
|
||||
{2: } |
|
||||
|
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user