fix(terminal): keep focus when scrolling number column of another window

(cherry picked from commit ca0a603bce)
This commit is contained in:
zeertzjq
2023-10-31 14:55:51 +08:00
committed by github-actions[bot]
parent 6f64a93764
commit 5b87e58c5a
2 changed files with 6 additions and 5 deletions

View File

@@ -338,7 +338,7 @@ describe(':terminal mouse', function()
{3:-- TERMINAL --} |
]])
command('set mousescroll=ver:10')
feed('<ScrollWheelUp><4,0>')
feed('<ScrollWheelUp><0,0>')
screen:expect([[
{7: 16 }line │line30 |
{7: 17 }line │rows: 5, cols: 25 |
@@ -349,7 +349,7 @@ describe(':terminal mouse', function()
{3:-- TERMINAL --} |
]])
command('set mousescroll=ver:0')
feed('<ScrollWheelUp><4,0>')
feed('<ScrollWheelUp><0,0>')
screen:expect_unchanged()
end)