patch 9.0.0125: cursor positioned wrong with virtual text after the line
Problem: Cursor positioned wrong with virtual text after the line.
Solution: Clear cts_with_trailing.
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 987df98..5ac787e 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2224,6 +2224,10 @@
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: 'belowprop', text: ' BELOW ', text_align: 'below'})
+
+ call setline(2, 'Last line.')
+ call prop_add(2, 0, #{type: 'afterprop', text: ' After Last ', text_align: 'after'})
+ normal G$
END
call writefile(lines, 'XscriptPropsWithTextAfter')
let buf = RunVimInTerminal('-S XscriptPropsWithTextAfter', #{rows: 6, cols: 60})