Mercurial > vim
diff src/testdir/test_textprop.vim @ 29568:8f71840ecf07 v9.0.0125
patch 9.0.0125: cursor positioned wrong with virtual text after the line
Commit: https://github.com/vim/vim/commit/84b247fab70e9b76539c2a0e24556e7c66126974
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 1 11:17:40 2022 +0100
patch 9.0.0125: cursor positioned wrong with virtual text after the line
Problem: Cursor positioned wrong with virtual text after the line.
Solution: Clear cts_with_trailing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Aug 2022 12:30:05 +0200 |
parents | 14b139cbec49 |
children | f7a64755dbe9 |
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -2224,6 +2224,10 @@ func Test_props_with_text_after() call prop_add(1, 0, #{type: 'rightprop', text: ' RIGHT ', text_align: 'right'}) call prop_add(1, 0, #{type: 'afterprop', text: ' AFTER ', text_align: 'after'}) call prop_add(1, 0, #{type: 'belowprop', text: ' BELOW ', text_align: 'below'}) + + call setline(2, 'Last line.') + call prop_add(2, 0, #{type: 'afterprop', text: ' After Last ', text_align: 'after'}) + normal G$ END call writefile(lines, 'XscriptPropsWithTextAfter') let buf = RunVimInTerminal('-S XscriptPropsWithTextAfter', #{rows: 6, cols: 60})