Mercurial > vim
annotate src/testdir/dumps/Test_cursor_position_with_showbreak_1.dump @ 32977:68a12270d21b
patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol
Commit: https://github.com/vim/vim/commit/1193951bebcff50d88403ce17dec5d3be14f131d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Aug 23 20:58:01 2023 +0200
patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol
Problem: wrong cursor position with 'showbreak' and lcs-eol
Solution: Add size of 'showbreak' before when 'listchars' "eol" is used.
Also fix wrong cursor position with wrapping virtual text on
empty line and 'showbreak'.
closes: #12891
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 24 Aug 2023 07:35:13 +0200 |
parents | src/testdir/dumps/Test_cursor_position_with_showbreak.dump@22cdc06b37bf |
children | 0d460c34ee39 |
rev | line source |
---|---|
27952
22cdc06b37bf
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 | +0#0000e05#a8a8a8255@1|x+0#0000000#ffffff0@71|X |
32977
68a12270d21b
patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol
Christian Brabandt <cb@256bit.org>
parents:
27952
diff
changeset
|
2 | +0#0000e05#a8a8a8255@1>s+0#0000000#ffffff0|e|c|o|n|d| |l|i|n|e| @61 |
27952
22cdc06b37bf
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 |~+0#4040ff13&| @73 |
22cdc06b37bf
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 |~| @73 |
22cdc06b37bf
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 |~| @73 |
22cdc06b37bf
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 |-+2#0000000&@1| |I|N|S|E|R|T| |-@1| +0&&@44|1|,|7|4| @9|A|l@1| |