aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-21 23:48:08 -0700
committerGitHub <noreply@github.com>2019-09-21 23:48:08 -0700
commitc534ab84474a111ce969b69aba137ee63849cbb9 (patch)
tree228dc1a75cc165895eed875cf9f03ef0851671cc /test/functional/ui/highlight_spec.lua
parent45447e3b647259d78434798ddd9c2ae245dcdbcc (diff)
parent16549324988be0717b59f7e5fec818ee9ad70f52 (diff)
downloadrneovim-c534ab84474a111ce969b69aba137ee63849cbb9.tar.gz
rneovim-c534ab84474a111ce969b69aba137ee63849cbb9.tar.bz2
rneovim-c534ab84474a111ce969b69aba137ee63849cbb9.zip
Merge #11034 from zwegner/precedes
Fix "precedes" listchar behavior in wrap mode
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index f40f658275..95a19aec81 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -657,6 +657,30 @@ describe("'listchars' highlight", function()
]])
end)
+ it("'listchar' with wrap", function()
+ screen:set_default_attr_ids({
+ [0] = {bold=true, foreground=Screen.colors.Blue},
+ })
+ feed_command('set wrap')
+ feed_command('set listchars=eol:¬,precedes:< list')
+ feed('90ia<esc>')
+ screen:expect([[
+ {0:<}aaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaa^a{0:¬} |
+ |
+ ]])
+ feed('0')
+ screen:expect([[
+ ^aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|
+ |
+ ]])
+ end)
+
it("'listchar' in visual mode", function()
screen:set_default_attr_ids({
[1] = {background=Screen.colors.Grey90},