vim-patch:9.0.1919: Wrong curswant when clicking on empty line or with vsplits

Problem:  Wrong curswant when clicking on empty line or with vsplits.
Solution: Don't check for ScreenCols[] before the start of the window
          and handle empty line properly.

closes: vim/vim#13132

03cd697d63
This commit is contained in:
zeertzjq
2023-09-21 08:00:03 +08:00
parent f094db0e5c
commit adb73772d9
6 changed files with 94 additions and 58 deletions

View File

@@ -6287,7 +6287,7 @@ describe('float window', function()
end
if multigrid then
meths.input_mouse('left', 'press', '', 1, 0, 0)
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect{grid=[[
## grid 1
[2:----------------------------------------]|
@@ -6366,7 +6366,7 @@ describe('float window', function()
end
if multigrid then
meths.input_mouse('left', 'press', '', 1, 0, 0)
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect{grid=[[
## grid 1
[2:----------------------------------------]|