patch 9.0.0184: virtual text prop highlight continues after truncation
Problem: Virtual text prop highlight continues after truncation.
Solution: Recompute the length of attributes.
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index dd3f760..8533af3 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -1898,6 +1898,24 @@
call delete('XscriptPropWithLinebreak')
endfunc
+func Test_prop_with_wrap()
+ CheckRunVimInTerminal
+
+ let lines =<< trim END
+ vim9script
+ set linebreak
+ setline(1, 'asdf '->repeat(15))
+ prop_type_add('test', {highlight: 'Special'})
+ prop_add(1, 43, {text: 'some virtual text', type: 'test'})
+ END
+ call writefile(lines, 'XscriptPropWithWrap')
+ let buf = RunVimInTerminal('-S XscriptPropWithWrap', #{rows: 6, cols: 50})
+ call VerifyScreenDump(buf, 'Test_prop_with_wrap_1', {})
+
+ call StopVimInTerminal(buf)
+ call delete('XscriptPropWithWrap')
+endfunc
+
func Test_prop_after_tab()
CheckRunVimInTerminal