]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0880: scroll: window scrolls when using the autocommand window v9.2.0880
authorHirohito Higashi <h.east.727@gmail.com>
Thu, 30 Jul 2026 19:28:04 +0000 (19:28 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 30 Jul 2026 19:28:45 +0000 (19:28 +0000)
commit7fe3ea7658a1f3be4e07dee14041302ca129c8a9
tree665e03afcefc67c75a769af937ba4b308b12b1a2
parent5ffc8c11d141bef8986529edebade6b272af6d9b
patch 9.2.0880: scroll: window scrolls when using the autocommand window

Problem:  The window scrolls when an autocommand window is used while the
          cursor is behind multi-byte characters.
Solution: Use the byte column instead of the character count when computing
          how many screen lines the text up to the cursor takes.

fixes:  #12085
closes: #20884

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>
runtime/doc/todo.txt
src/misc1.c
src/testdir/test_window_cmd.vim
src/version.c