]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1725: cursor pos wrong after concealed text with 'virtualedit' v9.0.1725
authorzeertzjq <zeertzjq@outlook.com>
Thu, 17 Aug 2023 20:35:26 +0000 (22:35 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Aug 2023 20:35:26 +0000 (22:35 +0200)
commite500ae8e29ad921378085f5d70ee5c0c537be1ba
treeb0359471c2dd4bb6920edc9b98107e3730eff8a9
parent2261c89a49ff2115e1ccc9ab9211e9f0d5a37578
patch 9.0.1725: cursor pos wrong after concealed text with 'virtualedit'

Problem:    Wrong cursor position when clicking after concealed text
            with 'virtualedit'.
Solution:   Store virtual columns in ScreenCols[] instead of text
            columns, and always use coladvance() when clicking.

This also fixes incorrect curswant when clicking on a TAB, so now
Test_normal_click_on_ctrl_char() asserts the same results as the ones
before patch 9.0.0048.

closes: #12808

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/drawline.c
src/globals.h
src/mouse.c
src/testdir/test_conceal.vim
src/testdir/test_normal.vim
src/testdir/test_virtualedit.vim
src/version.c