diff 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
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2197,7 +2197,7 @@ func Test_prop_inserts_text()
       call prop_type_add('otherprop', #{highlight: 'Search'})
       call prop_type_add('moreprop', #{highlight: 'DiffAdd'})
       call prop_add(1, 18, #{type: 'someprop', text: 'SOME '})
-      call prop_add(1, 38, #{type: 'otherprop', text: 'OTHER '})
+      call prop_add(1, 38, #{type: 'otherprop', text: "OTHER\t"})
       call prop_add(1, 69, #{type: 'moreprop', text: 'MORE '})
       redraw
       normal $
@@ -2222,7 +2222,7 @@ func Test_props_with_text_after()
       call prop_type_add('afterprop', #{highlight: 'Search'})
       call prop_type_add('belowprop', #{highlight: 'DiffAdd'})
       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: 'afterprop', text: "\tAFTER\t", text_align: 'after'})
       call prop_add(1, 0, #{type: 'belowprop', text: ' BELOW ', text_align: 'below'})
 
       call setline(2, 'Last line.')