]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0883: scroll: 'smoothscroll' position is lost when using "|" v9.2.0883
authorHirohito Higashi <h.east.727@gmail.com>
Fri, 31 Jul 2026 18:28:25 +0000 (18:28 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 31 Jul 2026 18:28:25 +0000 (18:28 +0000)
commit5ed8fc10fac461981a729e9cd0995545be64ae46
treeb39f1c68b9b90361cf23626fbb05943f26b06d1e
parent3e4019a082701f48bb44de0cc7a92f6a3077bd4e
patch 9.2.0883: scroll: 'smoothscroll' position is lost when using "|"

Problem:  With 'smoothscroll' the scroll position in a long line is lost when
          moving to a column with "|".
Solution: Adjust the skipped columns for the column the cursor ends up in,
          not for column zero.

related: #20885
closes:  #20890

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 files changed:
src/normal.c
src/testdir/dumps/Test_smooth_long_scrolloff_1.dump
src/testdir/dumps/Test_smooth_long_scrolloff_2.dump
src/testdir/dumps/Test_smooth_long_scrolloff_3.dump
src/testdir/dumps/Test_smooth_long_scrolloff_4.dump
src/testdir/dumps/Test_smooth_long_scrolloff_5.dump
src/testdir/dumps/Test_smooth_long_scrolloff_6.dump
src/testdir/dumps/Test_smooth_long_scrolloff_7.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_1.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_2.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_3.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_4.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_5.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_6.dump
src/testdir/dumps/Test_smooth_long_scrolloff_ru_7.dump
src/testdir/test_scroll_opt.vim
src/version.c