comparison 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
comparison
equal deleted inserted replaced
29567:85f3cea1b0b9 29568:8f71840ecf07
2222 call prop_type_add('afterprop', #{highlight: 'Search'}) 2222 call prop_type_add('afterprop', #{highlight: 'Search'})
2223 call prop_type_add('belowprop', #{highlight: 'DiffAdd'}) 2223 call prop_type_add('belowprop', #{highlight: 'DiffAdd'})
2224 call prop_add(1, 0, #{type: 'rightprop', text: ' RIGHT ', text_align: 'right'}) 2224 call prop_add(1, 0, #{type: 'rightprop', text: ' RIGHT ', text_align: 'right'})
2225 call prop_add(1, 0, #{type: 'afterprop', text: ' AFTER ', text_align: 'after'}) 2225 call prop_add(1, 0, #{type: 'afterprop', text: ' AFTER ', text_align: 'after'})
2226 call prop_add(1, 0, #{type: 'belowprop', text: ' BELOW ', text_align: 'below'}) 2226 call prop_add(1, 0, #{type: 'belowprop', text: ' BELOW ', text_align: 'below'})
2227
2228 call setline(2, 'Last line.')
2229 call prop_add(2, 0, #{type: 'afterprop', text: ' After Last ', text_align: 'after'})
2230 normal G$
2227 END 2231 END
2228 call writefile(lines, 'XscriptPropsWithTextAfter') 2232 call writefile(lines, 'XscriptPropsWithTextAfter')
2229 let buf = RunVimInTerminal('-S XscriptPropsWithTextAfter', #{rows: 6, cols: 60}) 2233 let buf = RunVimInTerminal('-S XscriptPropsWithTextAfter', #{rows: 6, cols: 60})
2230 call VerifyScreenDump(buf, 'Test_prop_with_text_after_1', {}) 2234 call VerifyScreenDump(buf, 'Test_prop_with_text_after_1', {})
2231 2235