summaryrefslogtreecommitdiffstats
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-24 22:42:29 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-24 22:42:29 +0000
commit6ac16f0c0fe923098b9df5ac430f1923045f16ea (patch)
tree0608841abbbab73d73941f63163a2a845403d19c /src/testdir
parentd330e8422d1c4670a241ce8ebde4c37918538dce (diff)
patch 9.0.0944: 'cursorline' causes virtual text highlight to continuev9.0.0944
Problem: 'cursorline' causes virtual text highlight to continue. Solution: Save and restore line_attr. (closes #11588)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/dumps/Test_prop_with_text_after_below_trunc_1.dump2
-rw-r--r--src/testdir/dumps/Test_prop_with_text_after_below_trunc_2.dump2
-rw-r--r--src/testdir/dumps/Test_prop_with_text_after_below_trunc_3.dump8
-rw-r--r--src/testdir/test_textprop.vim11
4 files changed, 18 insertions, 5 deletions
diff --git a/src/testdir/dumps/Test_prop_with_text_after_below_trunc_1.dump b/src/testdir/dumps/Test_prop_with_text_after_below_trunc_1.dump
index e254ac034e..8481c9c743 100644
--- a/src/testdir/dumps/Test_prop_with_text_after_below_trunc_1.dump
+++ b/src/testdir/dumps/Test_prop_with_text_after_below_trunc_1.dump
@@ -1,5 +1,5 @@
|o+0&#ffffff0|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|p|s| |o|…
-|t|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&@16
+| +0#0000000&@3|t+0&#ffd7ff255|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&#ffffff0@12
|t|w>o| @56
|~+0#4040ff13&| @58
|~| @58
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
index 1d93f9fb42..afa1a3624f 100644
--- 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
@@ -1,5 +1,5 @@
| +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&@3| +0#0000000&@3|t+0&#ffd7ff255|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&#ffffff0@8
| +0#af5f00255&@1|2| |t+0#0000000&|w>o| @52
|~+0#4040ff13&| @58
|~| @58
diff --git a/src/testdir/dumps/Test_prop_with_text_after_below_trunc_3.dump b/src/testdir/dumps/Test_prop_with_text_after_below_trunc_3.dump
new file mode 100644
index 0000000000..7b93c7f62a
--- /dev/null
+++ b/src/testdir/dumps/Test_prop_with_text_after_below_trunc_3.dump
@@ -0,0 +1,8 @@
+| +8#af5f00255#ffffff0@1|1| >o+8#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+8#e000e06&|h|e| |q|u|i|c|k| |b|r|o|w|n| |f|o|x| |j|u|m|…
+| +8#af5f00255&@3| +8#0000000&@3|t+8&#ffd7ff255|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| +8&#ffffff0@8
+| +0#af5f00255&@1|2| |t+0#0000000&|w|o| @52
+|~+0#4040ff13&| @58
+|~| @58
+|~| @58
+|~| @58
+|:+0#0000000&|s|e|t| |c|u|r|s|o|r|l|i|n|e| @26|1|,|1| @10|A|l@1|
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index c2ee233e32..3f24463c18 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2690,12 +2690,14 @@ func Test_props_with_text_after_below_trunc()
prop_add(1, 0, {
type: 'test',
text: 'the quick brown fox jumps over the lazy dog',
- text_align: 'after'
+ text_align: 'after',
})
+ prop_type_add('another', {highlight: 'DiffChange'})
prop_add(1, 0, {
- type: 'test',
+ type: 'another',
text: 'the quick brown fox jumps over the lazy dog',
- text_align: 'below'
+ text_align: 'below',
+ text_padding_left: 4,
})
normal G$
END
@@ -2706,6 +2708,9 @@ func Test_props_with_text_after_below_trunc()
call term_sendkeys(buf, ":set number\<CR>")
call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_2', {})
+ call term_sendkeys(buf, ":set cursorline\<CR>gg")
+ call VerifyScreenDump(buf, 'Test_prop_with_text_after_below_trunc_3', {})
+
call StopVimInTerminal(buf)
endfunc