patch 9.0.1124: virtual text at a column position is truncated
Problem: Virtual text at a column position is truncated at the window edge.
(Yegappan Lakshmanan)
Solution: Do not truncated virtual text that is placed at a column.
diff --git a/src/testdir/dumps/Test_prop_with_wrap_1.dump b/src/testdir/dumps/Test_prop_with_wrap_1.dump
index c4bf866..6b6d664 100644
--- a/src/testdir/dumps/Test_prop_with_wrap_1.dump
+++ b/src/testdir/dumps/Test_prop_with_wrap_1.dump
@@ -1,6 +1,6 @@
->a+0&#ffffff0|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|s+0#e000e06&|o|m|e| |v|i|…
-|d+0#0000000&|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| @17
+|a+0&#ffffff0|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|s+0#e000e06&|o|m|e| |v|i|r
+|t|u|a|l| |t|e|x|t|d+0#0000000&|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f> @8
|~+0#4040ff13&| @48
|~| @48
|~| @48
-| +0#0000000&@31|1|,|1| @10|A|l@1|
+| +0#0000000&@31|1|,|7|5|-|9|2| @6|A|l@1|
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index a507a95..f1c7984 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -1978,6 +1978,7 @@
setline(1, 'asdf '->repeat(15))
prop_type_add('test', {highlight: 'Special'})
prop_add(1, 43, {text: 'some virtual text', type: 'test'})
+ normal G$
END
call writefile(lines, 'XscriptPropWithWrap', 'D')
let buf = RunVimInTerminal('-S XscriptPropWithWrap', #{rows: 6, cols: 50})