]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1729: screenpos() wrong when w_skipcol and cpoptions+=n v9.0.1729
authorzeertzjq <zeertzjq@outlook.com>
Thu, 17 Aug 2023 20:58:53 +0000 (22:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Aug 2023 20:58:53 +0000 (22:58 +0200)
commitbfe377b8f2d080e5f85c8cbecf3533456e1d6312
treed709875e1dfbd342fe59b999cfeaa981761e2f3f
parent825cf813fa0fddf085fcbd3194781e875320ff63
patch 9.0.1729: screenpos() wrong when w_skipcol and cpoptions+=n

Problem:    screenpos() wrong result with w_skipcol and cpoptions+=n
Solution:   Use adjust_plines_for_skipcol() instead of subtracting
            w_skipcol.

closes: #12625

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/drawscreen.c
src/misc1.c
src/move.c
src/popupwin.c
src/proto/misc1.pro
src/testdir/test_cursor_func.vim
src/version.c