mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: avoid repeated screen lines in expected states
This is the command invoked repeatedly to make the changes:
:%s/^\(.*\)|\%(\*\(\d\+\)\)\?$\n\1|\%(\*\(\d\+\)\)\?$/\=submatch(1)..'|*'..(max([str2nr(submatch(2)),1])+max([str2nr(submatch(3)),1]))/g
This commit is contained in:
@@ -33,8 +33,7 @@ describe('Visual highlight', function()
|
||||
{2:aaaaaa}^ |
|
||||
{2:bbbb } |
|
||||
{2:cc } |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|*2
|
||||
{1:-- VISUAL BLOCK --} |
|
||||
]])
|
||||
|
||||
@@ -43,8 +42,7 @@ describe('Visual highlight', function()
|
||||
{2:aaaaaa } |
|
||||
{2:bbbb } |
|
||||
{2:cc}^ {2: } |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|*2
|
||||
{1:-- VISUAL BLOCK --} |
|
||||
]])
|
||||
end)
|
||||
@@ -60,9 +58,7 @@ describe('Visual highlight', function()
|
||||
screen:expect([[
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^a|
|
||||
{0:+}{2:aaaa}aaaaaa |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|*3
|
||||
{1:-- VISUAL --} |
|
||||
]])
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user