patch 9.0.0157: 'showbreak' displayed below truncated "after" text prop
Problem: 'showbreak' displayed below truncated "after" text prop.
Solution: Suppress 'showbreak' when "after" prop doesn't wrap.
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 2c59f64..484cb3c 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2336,6 +2336,35 @@
call delete('XscriptPropsWithTextAfter')
endfunc
+func Test_props_with_text_after_below_trunc()
+ CheckRunVimInTerminal
+
+ let lines =<< trim END
+ vim9script
+ edit foobar
+ set showbreak=+++
+ setline(1, ['onasdf asdf asdf asdf asd fas df', 'two'])
+ prop_type_add('test', {highlight: 'Special'})
+ prop_add(1, 0, {
+ type: 'test',
+ text: 'the quick brown fox jumps over the lazy dog',
+ text_align: 'after'
+ })
+ prop_add(1, 0, {
+ type: 'test',
+ text: 'the quick brown fox jumps over the lazy dog',
+ text_align: 'below'
+ })
+ normal G$
+ END
+ call writefile(lines, 'XscriptPropsAfterTrunc')
+ let buf = RunVimInTerminal('-S XscriptPropsAfterTrunc', #{rows: 8, cols: 60})
+ call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_1', {})
+
+ call StopVimInTerminal(buf)
+ call delete('XscriptPropsAfterTrunc')
+endfunc
+
func Test_props_with_text_after_joined()
CheckRunVimInTerminal