comparison src/testdir/test_textprop.vim @ 29581:4a79bca8a76e v9.0.0131

patch 9.0.0131: virtual text with Tab is not displayed correctly Commit: https://github.com/vim/vim/commit/783ef7214b6a33300bd83f616c1ead587370ce49 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 1 16:11:06 2022 +0100 patch 9.0.0131: virtual text with Tab is not displayed correctly Problem: Virtual text with Tab is not displayed correctly. Solution: Change any Tab to a space.
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Aug 2022 17:15:02 +0200
parents f7a64755dbe9
children 32aee589fc9a
comparison
equal deleted inserted replaced
29580:11db5a699881 29581:4a79bca8a76e
2195 call setline(1, 'insert some text here and other text there and some more text after wrapping') 2195 call setline(1, 'insert some text here and other text there and some more text after wrapping')
2196 call prop_type_add('someprop', #{highlight: 'ErrorMsg'}) 2196 call prop_type_add('someprop', #{highlight: 'ErrorMsg'})
2197 call prop_type_add('otherprop', #{highlight: 'Search'}) 2197 call prop_type_add('otherprop', #{highlight: 'Search'})
2198 call prop_type_add('moreprop', #{highlight: 'DiffAdd'}) 2198 call prop_type_add('moreprop', #{highlight: 'DiffAdd'})
2199 call prop_add(1, 18, #{type: 'someprop', text: 'SOME '}) 2199 call prop_add(1, 18, #{type: 'someprop', text: 'SOME '})
2200 call prop_add(1, 38, #{type: 'otherprop', text: 'OTHER '}) 2200 call prop_add(1, 38, #{type: 'otherprop', text: "OTHER\t"})
2201 call prop_add(1, 69, #{type: 'moreprop', text: 'MORE '}) 2201 call prop_add(1, 69, #{type: 'moreprop', text: 'MORE '})
2202 redraw 2202 redraw
2203 normal $ 2203 normal $
2204 END 2204 END
2205 call writefile(lines, 'XscriptPropsWithText') 2205 call writefile(lines, 'XscriptPropsWithText')
2220 call setline(1, 'some text here and other text there') 2220 call setline(1, 'some text here and other text there')
2221 call prop_type_add('rightprop', #{highlight: 'ErrorMsg'}) 2221 call prop_type_add('rightprop', #{highlight: 'ErrorMsg'})
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: "\tAFTER\t", 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 2227
2228 call setline(2, 'Last line.') 2228 call setline(2, 'Last line.')
2229 call prop_add(2, 0, #{type: 'afterprop', text: ' After Last ', text_align: 'after'}) 2229 call prop_add(2, 0, #{type: 'afterprop', text: ' After Last ', text_align: 'after'})
2230 normal G$ 2230 normal G$