summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_textprop.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-18 23:13:47 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-18 23:13:47 +0000
commit02edfaa610a2bedd6e2a58a1ee64488d51cfc33d (patch)
tree794704e651f9591bdd31331b6173204102717759 /src/testdir/test_textprop.vim
parent88456cd3c49a3dd1fda17cf350daa9b8216b1aa6 (diff)
patch 9.0.0905: virtual text after the line wraps when 'wrap' is offv9.0.0905
Problem: Virtual text after the line wraps when 'wrap' is off. Solution: Only set text_prop_follows when wrapping. (closes #11463)
Diffstat (limited to 'src/testdir/test_textprop.vim')
-rw-r--r--src/testdir/test_textprop.vim36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index c03c5b3fb7..c2ee233e32 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -3393,6 +3393,42 @@ func Test_text_after_nowrap()
call StopVimInTerminal(buf)
endfunc
+func Test_text_after_nowrap_list()
+ CheckRunVimInTerminal
+
+ let lines =<< trim END
+ vim9script
+
+ set nowrap
+ set listchars+=extends:>
+ set list
+ setline(1, ['some text here', '', 'last line'])
+
+ prop_type_add('test', {highlight: 'DiffChange'})
+ prop_add(1, 0, {
+ type: 'test',
+ text: 'The quick brown fox jumps.',
+ text_padding_left: 2,
+ })
+ prop_add(1, 0, {
+ type: 'test',
+ text: '■ The fox jumps over the lazy dog.',
+ text_padding_left: 2,
+ })
+ prop_add(1, 0, {
+ type: 'test',
+ text: '■ The lazy dog.',
+ text_padding_left: 2,
+ })
+ normal 3G$
+ END
+ call writefile(lines, 'XTextAfterNowrapList', 'D')
+ let buf = RunVimInTerminal('-S XTextAfterNowrapList', #{rows: 6, cols: 60})
+ call VerifyScreenDump(buf, 'Test_text_after_nowrap_list_1', {})
+
+ call StopVimInTerminal(buf)
+endfunc
+
func Test_text_below_nowrap()
CheckRunVimInTerminal