]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2081: smoothscroll may result in wrong cursor position v9.0.2081
authorLuuk van Baal <luukvbaal@gmail.com>
Sat, 28 Oct 2023 19:43:31 +0000 (21:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 28 Oct 2023 19:43:31 +0000 (21:43 +0200)
commit1bf1bf569b96d2f9b28e0cce0968ffbf2fb80aac
tree72b7fdecf5faca63e5dd71e6506bce076b44ca43
parenta390e984db20575dc726b4e0ebf95582265df8e7
patch 9.0.2081: smoothscroll may result in wrong cursor position

Problem:  With 'smoothscroll' set, "w_skipcol" is not reset when unsetting 'wrap'.
          Resulting in incorrect calculation of the cursor position.
Solution: Reset "w_skipcol" when unsetting 'wrap'.

fixes:  #12970
closes: #13439

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/option.c
src/testdir/test_options.vim
src/version.c