]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0805: screenpos() "curscol" is wrong with 'rightleft' v9.2.0805
authorHirohito Higashi <h.east.727@gmail.com>
Sat, 18 Jul 2026 17:36:43 +0000 (17:36 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 19 Jul 2026 14:43:16 +0000 (14:43 +0000)
commitdcd5b5fed9cbc4f2c8d3fd0718c12ec74a197914
treecee18b90429364a7ab538ae9a23717ec2deececa
parent6f02e5cd7c27fc098d0b8dfec99542c7663a807e
patch 9.2.0805: screenpos() "curscol" is wrong with 'rightleft'

Problem:  With 'rightleft' set, the "curscol" value of screenpos() does not
          point to the screen column where the cursor is placed.
Solution: Count "curscol" from the left side of the window, leaving "col"
          and "endcol" as reading-order columns (Hirohito Higashi)

related: #20763
closes:  #20786

Co-Authored-By: Claude Opus 4.8 (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/builtin.txt
src/move.c
src/testdir/test_cursor_func.vim
src/version.c