patch 9.0.1326: relative line number not updated with virtual text above
Problem: Relative line number not updated with virtual text above.
Solution: Adjust the row for the line number for virtual text above.
(closes #12004)
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 158896f..3bd08fe 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2806,6 +2806,14 @@
call term_sendkeys(buf, ":\<CR>")
call VerifyScreenDump(buf, 'Test_prop_above_below_empty_3', {})
+ call term_sendkeys(buf, ":set colorcolumn=\<CR>")
+ call term_sendkeys(buf, ":set relativenumber\<CR>")
+ call term_sendkeys(buf, ":\<CR>")
+ call VerifyScreenDump(buf, 'Test_prop_above_below_empty_4', {})
+
+ call term_sendkeys(buf, "kk")
+ call VerifyScreenDump(buf, 'Test_prop_above_below_empty_5', {})
+
call StopVimInTerminal(buf)
endfunc