]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0759: screenpos() may return invalid position v9.1.0759
authorChristian Brabandt <cb@256bit.org>
Sat, 5 Oct 2024 15:30:22 +0000 (17:30 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 5 Oct 2024 15:30:22 +0000 (17:30 +0200)
commitb065a10e245d020c11b521a2a5062300ca9891fc
tree783955446d0694e1b2790e041d791cd12587528d
parent7c3f9af0ed5dd7035f8a3fbb2f0bf965a453e359
patch 9.1.0759: screenpos() may return invalid position

Problem:  screenpos() may return invalid position
          after switching buffers (Greg Hurrell)
Solution: reset w_leftcol if wrapping has been set
          after copying wrap option

fixes: #15792
closes: #15803

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/option.c
src/testdir/test_cursor_func.vim
src/version.c