summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-10 21:10:03 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-10 21:10:03 +0100
commitccf2837a05cef0ea4913ebff4f2f6000bc050271 (patch)
tree8b6923e28dd3fa10392f4c342ced3445c4121c2a /src/testdir
parentd3283fba2593d093593fc692702aabfaa2a68523 (diff)
downloadvim-git-ccf2837a05cef0ea4913ebff4f2f6000bc050271.tar.gz
patch 9.0.0718: extra empty line between two virtual text "below"v9.0.0718
Problem: Extra empty line between two virtual text "below" when 'wrap' and 'number' are set. Solution: Reset "before" when there is no text in the screen line. (closes #11334)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/dumps/Test_prop_with_text_after_below_trunc_2.dump8
-rw-r--r--src/testdir/test_textprop.vim3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_prop_with_text_after_below_trunc_2.dump b/src/testdir/dumps/Test_prop_with_text_after_below_trunc_2.dump
new file mode 100644
index 000000000..1d93f9fb4
--- /dev/null
+++ b/src/testdir/dumps/Test_prop_with_text_after_below_trunc_2.dump
@@ -0,0 +1,8 @@
+| +0#af5f00255#ffffff0@1|1| |o+0#0000000&|n|a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d|f| |a|s|d| |f|a|s| |d|f|t+0#e000e06&|h|e| |q|u|i|c|k| |b|r|o|w|n| |f|o|x| |j|u|m|…
+| +0#af5f00255&@3|t+0#e000e06&|h|e| |q|u|i|c|k| |b|r|o|w|n| |f|o|x| |j|u|m|p|s| |o|v|e|r| |t|h|e| |l|a|z|y| |d|o|g| +0#0000000&@12
+| +0#af5f00255&@1|2| |t+0#0000000&|w>o| @52
+|~+0#4040ff13&| @58
+|~| @58
+|~| @58
+|~| @58
+|:+0#0000000&|s|e|t| |n|u|m|b|e|r| @30|2|,|3| @10|A|l@1|
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index b4178e5f2..3fb27c9a6 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2653,6 +2653,9 @@ func Test_props_with_text_after_below_trunc()
let buf = RunVimInTerminal('-S XscriptPropsAfterTrunc', #{rows: 8, cols: 60})
call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_1', {})
+ call term_sendkeys(buf, ":set number\<CR>")
+ call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_2', {})
+
call StopVimInTerminal(buf)
endfunc