]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1919: Wrong curswant when clicking on empty line or with vsplits v9.0.1919
authorzeertzjq <zeertzjq@outlook.com>
Wed, 20 Sep 2023 18:08:40 +0000 (20:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 Sep 2023 18:08:40 +0000 (20:08 +0200)
commit03cd697d635f1b0e7ffe21cf8244a8fb755f2ddb
treed856a22b0fc6373c66b20b182705ac14cc767c49
parent5790a54166793554d16f6a85d8824632860b8b37
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: #13132

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/mouse.c
src/testdir/test_normal.vim
src/testdir/test_virtualedit.vim
src/version.c