aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-26 21:23:36 +0100
committerbfredl <bjorn.linse@gmail.com>2024-03-26 21:28:05 +0100
commit35f2bb05a5cb84af405a094f040b92461a824e61 (patch)
tree157ba34b5e8673092405b9b3dfd70bcba180590e
parent0c0be09eab66975e62c67522620fee10f82663d2 (diff)
downloadrneovim-35f2bb05a5cb84af405a094f040b92461a824e61.tar.gz
rneovim-35f2bb05a5cb84af405a094f040b92461a824e61.tar.bz2
rneovim-35f2bb05a5cb84af405a094f040b92461a824e61.zip
refactor(tests): use new global defaults instead of set_default_attr_ids
This will be done in batches.
-rw-r--r--test/functional/ui/cmdline_spec.lua67
-rw-r--r--test/functional/ui/input_spec.lua59
-rw-r--r--test/functional/ui/linematch_spec.lua1114
-rw-r--r--test/functional/ui/mode_spec.lua69
-rw-r--r--test/functional/ui/multibyte_spec.lua44
-rw-r--r--test/functional/ui/screen_basic_spec.lua11
-rw-r--r--test/functional/ui/statuscolumn_spec.lua90
-rw-r--r--test/functional/ui/tabline_spec.lua30
-rw-r--r--test/functional/ui/winbar_spec.lua41
9 files changed, 713 insertions, 812 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index 3b5b488982..d38cb395e2 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -1265,15 +1265,6 @@ describe('cmdheight=0', function()
before_each(function()
clear()
screen = Screen.new(25, 5)
- screen:set_default_attr_ids {
- [1] = { bold = true, foreground = Screen.colors.Blue },
- [2] = { bold = true, reverse = true },
- [3] = { bold = true },
- [4] = { foreground = Screen.colors.White, background = Screen.colors.Red },
- [5] = { foreground = Screen.colors.SeaGreen4, bold = true },
- [6] = { reverse = true },
- [7] = { background = Screen.colors.Yellow },
- }
screen:attach()
end)
@@ -1302,7 +1293,7 @@ describe('cmdheight=0', function()
grid = [[
^ |
{1:~ }|*2
- {2:[No Name] }|
+ {3:[No Name] }|
|
]],
}
@@ -1314,7 +1305,7 @@ describe('cmdheight=0', function()
grid = [[
^ |
{1:~ }|*3
- {2:[No Name] }|
+ {3:[No Name] }|
]],
}
end)
@@ -1364,7 +1355,7 @@ describe('cmdheight=0', function()
grid = [[
^ |
{1:~ }|*3
- {3:-- INSERT --} |
+ {5:-- INSERT --} |
]],
}
feed('<Esc>')
@@ -1400,7 +1391,7 @@ describe('cmdheight=0', function()
grid = [[
|
{1:~ }|
- {2: }|
+ {3: }|
:call input("foo >") |
foo >^ |
]],
@@ -1422,26 +1413,26 @@ describe('cmdheight=0', function()
feed(':split<CR>')
screen:expect {
grid = [[
- {2: }|
+ {3: }|
:split |
- {4:E36: Not enough room} |
- {5:Press ENTER or type comma}|
- {5:nd to continue}^ |
+ {9:E36: Not enough room} |
+ {6:Press ENTER or type comma}|
+ {6:nd to continue}^ |
]],
}
feed('<CR>')
screen:expect {
grid = [[
- {3:foo }|
+ {5:foo }|
^ |
{1:~ }|*2
- {2:[No Name] }|
+ {3:[No Name] }|
]],
}
feed(':')
screen:expect {
grid = [[
- {3:foo }|
+ {5:foo }|
|
{1:~ }|*2
:^ |
@@ -1450,10 +1441,10 @@ describe('cmdheight=0', function()
feed('<Esc>')
screen:expect {
grid = [[
- {3:foo }|
+ {5:foo }|
^ |
{1:~ }|*2
- {2:[No Name] }|
+ {3:[No Name] }|
]],
showmode = {},
}
@@ -1488,16 +1479,16 @@ describe('cmdheight=0', function()
grid = [[
fo^o |
{1:~ }|*3
- {2:[No Name] [+] }|
+ {3:[No Name] [+] }|
]],
}
feed(':%s/foo/bar/gc<CR>')
screen:expect {
grid = [[
- {6:foo} |
+ {2:foo} |
{1:~ }|*3
- {5:replace wi...q/l/^E/^Y)?}^ |
+ {6:replace wi...q/l/^E/^Y)?}^ |
]],
}
@@ -1506,7 +1497,7 @@ describe('cmdheight=0', function()
grid = [[
^bar |
{1:~ }|*3
- {2:[No Name] [+] }|
+ {3:[No Name] [+] }|
]],
}
@@ -1525,7 +1516,7 @@ describe('cmdheight=0', function()
feed('iaabbaa<esc>/aa<cr>')
screen:expect {
grid = [[
- {7:^aa}bb{7:aa} |
+ {10:^aa}bb{10:aa} |
{1:~ }|*4
]],
}
@@ -1584,7 +1575,7 @@ describe('cmdheight=0', function()
[2:-------------------------]|*4
[3:-------------------------]|
## grid 2
- {6:p} |
+ {2:p} |
{1:~ }|*4
## grid 3
/p^ |
@@ -1610,7 +1601,7 @@ describe('cmdheight=0', function()
]])
feed(':')
screen:expect([[
- {3:c :}|
+ {5:c :}|
|
{1:~ }|*2
:^ |
@@ -1618,14 +1609,14 @@ describe('cmdheight=0', function()
feed('echo')
-- not redrawn yet
screen:expect([[
- {3:c :}|
+ {5:c :}|
|
{1:~ }|*2
:echo^ |
]])
command('redrawstatus')
screen:expect([[
- {3:c :echo}|
+ {5:c :echo}|
|
{1:~ }|*2
:echo^ |
@@ -1646,7 +1637,7 @@ describe('cmdheight=0', function()
screen:expect([[
^ │ |
{1:~ }│{1:~ }|*3
- {2:[No Name] }│{1:~ }|
+ {3:[No Name] }│{1:~ }|
│{1:~ }|
{1:~ }│{1:~ }|*3
]])
@@ -1654,7 +1645,7 @@ describe('cmdheight=0', function()
screen:expect([[
^ │ |
{1:~ }│{1:~ }|
- {2:[No Name] }│{1:~ }|
+ {3:[No Name] }│{1:~ }|
│{1:~ }|
{1:~ }│{1:~ }|*5
]])
@@ -1664,7 +1655,7 @@ describe('cmdheight=0', function()
screen:expect([[
^ │ |
{1:~ }│{1:~ }|*3
- {2:[No Name] }│{1:~ }|
+ {3:[No Name] }│{1:~ }|
│{1:~ }|
{1:~ }│{1:~ }|*3
]])
@@ -1686,7 +1677,7 @@ describe('cmdheight=0', function()
screen:expect([[
^ |
{1:~ }|*2
- {2:[No Name] }|
+ {3:[No Name] }|
|
]])
command('set cmdheight=0')
@@ -1694,7 +1685,7 @@ describe('cmdheight=0', function()
grid = [[
^ |
{1:~ }|*3
- {2:[No Name] }|
+ {3:[No Name] }|
]],
}
command('resize -1')
@@ -1702,7 +1693,7 @@ describe('cmdheight=0', function()
grid = [[
^ |
{1:~ }|*2
- {2:[No Name] }|
+ {3:[No Name] }|
|
]],
}
@@ -1710,7 +1701,7 @@ describe('cmdheight=0', function()
screen:expect([[
^ |
{1:~ }|*3
- {2:[No Name] }|
+ {3:[No Name] }|
]])
end)
diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua
index b2899bf82d..348be7af6a 100644
--- a/test/functional/ui/input_spec.lua
+++ b/test/functional/ui/input_spec.lua
@@ -280,21 +280,16 @@ end)
it('typing a simplifiable key at hit-enter prompt triggers mapping vim-patch:8.2.0839', function()
local screen = Screen.new(60, 8)
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
- [2] = { bold = true, reverse = true }, -- MsgSeparator
- [3] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg
- })
screen:attach()
command([[nnoremap <C-6> <Cmd>echo 'hit ctrl-6'<CR>]])
feed_command('ls')
screen:expect([[
|
{1:~ }|*3
- {2: }|
+ {3: }|
:ls |
1 %a "[No Name]" line 1 |
- {3:Press ENTER or type command to continue}^ |
+ {6:Press ENTER or type command to continue}^ |
]])
feed('<C-6>')
screen:expect([[
@@ -331,12 +326,6 @@ describe('input non-printable chars', function()
it("doesn't crash when echoing them back", function()
write_file('Xtest-overwrite', [[foobar]])
local screen = Screen.new(60, 8)
- screen:set_default_attr_ids {
- [1] = { bold = true, foreground = Screen.colors.Blue1 },
- [2] = { foreground = Screen.colors.Grey100, background = Screen.colors.Red },
- [3] = { bold = true, foreground = Screen.colors.SeaGreen4 },
- [4] = { bold = true, reverse = true },
- }
screen:attach()
command('set shortmess-=F')
@@ -354,45 +343,45 @@ describe('input non-printable chars', function()
screen:expect([[
foobar |
{1:~ }|*3
- {4: }|
+ {3: }|
"Xtest-overwrite" |
- {2:WARNING: The file has been changed since reading it!!!} |
- {3:Do you really want to write to it (y/n)?}^ |
+ {9:WARNING: The file has been changed since reading it!!!} |
+ {6:Do you really want to write to it (y/n)?}^ |
]])
feed('u')
screen:expect([[
foobar |
{1:~ }|*2
- {4: }|
+ {3: }|
"Xtest-overwrite" |
- {2:WARNING: The file has been changed since reading it!!!} |
- {3:Do you really want to write to it (y/n)?}u |
- {3:Do you really want to write to it (y/n)?}^ |
+ {9:WARNING: The file has been changed since reading it!!!} |
+ {6:Do you really want to write to it (y/n)?}u |
+ {6:Do you really want to write to it (y/n)?}^ |
]])
feed('\005')
screen:expect([[
foobar |
{1:~ }|
- {4: }|
+ {3: }|
"Xtest-overwrite" |
- {2:WARNING: The file has been changed since reading it!!!} |
- {3:Do you really want to write to it (y/n)?}u |
- {3:Do you really want to write to it (y/n)?} |
- {3:Do you really want to write to it (y/n)?}^ |
+ {9:WARNING: The file has been changed since reading it!!!} |
+ {6:Do you really want to write to it (y/n)?}u |
+ {6:Do you really want to write to it (y/n)?} |
+ {6:Do you really want to write to it (y/n)?}^ |
]])
feed('n')
screen:expect([[
foobar |
- {4: }|
+ {3: }|
"Xtest-overwrite" |
- {2:WARNING: The file has been changed since reading it!!!} |
- {3:Do you really want to write to it (y/n)?}u |
- {3:Do you really want to write to it (y/n)?} |
- {3:Do you really want to write to it (y/n)?}n |
- {3:Press ENTER or type command to continue}^ |
+ {9:WARNING: The file has been changed since reading it!!!} |
+ {6:Do you really want to write to it (y/n)?}u |
+ {6:Do you really want to write to it (y/n)?} |
+ {6:Do you really want to write to it (y/n)?}n |
+ {6:Press ENTER or type command to continue}^ |
]])
feed('<cr>')
@@ -437,10 +426,6 @@ describe('display is updated', function()
local screen
before_each(function()
screen = Screen.new(60, 8)
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue1 }, -- NonText
- [2] = { bold = true }, -- ModeMsg
- })
screen:attach()
end)
@@ -452,7 +437,7 @@ describe('display is updated', function()
abc |
^ |
{1:~ }|*5
- {2:-- INSERT --} |
+ {5:-- INSERT --} |
]])
end)
@@ -464,7 +449,7 @@ describe('display is updated', function()
abc |
^ |
{1:~ }|*5
- {2:-- INSERT --} |
+ {5:-- INSERT --} |
]])
end)
end)
diff --git a/test/functional/ui/linematch_spec.lua b/test/functional/ui/linematch_spec.lua
index 40df5cadf1..2733902615 100644
--- a/test/functional/ui/linematch_spec.lua
+++ b/test/functional/ui/linematch_spec.lua
@@ -38,18 +38,6 @@ describe('Diff mode screen with 3 diffs open', function()
screen = Screen.new(100, 16)
screen:attach()
- screen:set_default_attr_ids({
- [1] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.Gray },
- [2] = { foreground = Screen.colors.Blue1, bold = true, background = Screen.colors.LightCyan1 },
- [3] = { reverse = true },
- [4] = { background = Screen.colors.LightBlue },
- [5] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.LightGray },
- [6] = { foreground = Screen.colors.Blue1, bold = true },
- [7] = { reverse = true, bold = true },
- [8] = { background = Screen.colors.Red1, bold = true },
- [10] = { foreground = Screen.colors.Brown },
- [9] = { background = Screen.colors.Plum1 },
- })
feed('<c-w>=')
feed(':windo set nu!<cr>')
end)
@@ -96,20 +84,20 @@ describe('Diff mode screen with 3 diffs open', function()
feed('1<c-w>w')
feed(':2,6diffget screen-1.2<cr>')
screen:expect([[
- {1: }{10: 1 }^ │{1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }{9:<<<<<<< HEAD }│{1: }{10: 3 }{9:<<<<<<< HEAD }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 4 } AAA │{1: }{10: 4 } AAA │{1: }{10: 3 } AAA |
- {1: }{10: 5 } AAA │{1: }{10: 5 } AAA │{1: }{10: 4 } AAA |
- {1: }{10: 6 } AAA │{1: }{10: 6 } AAA │{1: }{10: 5 } AAA |
- {1: }{10: 7 }{9:======= }│{1: }{10: 7 }{9:======= }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 8 }{9: BBB }│{1: }{10: 8 }{9: BBB }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 9 }{9: BBB }│{1: }{10: 9 }{9: BBB }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 10 }{9: BBB }│{1: }{10: 10 }{9: BBB }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 11 }{9:>>>>>>> branch1 }│{1: }{10: 11 }{9:>>>>>>> branch1 }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 12 } │{1: }{10: 12 } │{1: }{10: 6 } |
- {6:~ }│{6:~ }│{6:~ }|*2
- {7:<-functional-diff-screen-1.3 [+] }{3:<est-functional-diff-screen-1.2 Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }^ │{7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }{4:<<<<<<< HEAD }│{7: }{8: 3 }{4:<<<<<<< HEAD }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 4 } AAA │{7: }{8: 4 } AAA │{7: }{8: 3 } AAA |
+ {7: }{8: 5 } AAA │{7: }{8: 5 } AAA │{7: }{8: 4 } AAA |
+ {7: }{8: 6 } AAA │{7: }{8: 6 } AAA │{7: }{8: 5 } AAA |
+ {7: }{8: 7 }{4:======= }│{7: }{8: 7 }{4:======= }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 8 }{4: BBB }│{7: }{8: 8 }{4: BBB }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 9 }{4: BBB }│{7: }{8: 9 }{4: BBB }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 10 }{4: BBB }│{7: }{8: 10 }{4: BBB }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 11 }{4:>>>>>>> branch1 }│{7: }{8: 11 }{4:>>>>>>> branch1 }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 12 } │{7: }{8: 12 } │{7: }{8: 6 } |
+ {1:~ }│{1:~ }│{1:~ }|*2
+ {3:<-functional-diff-screen-1.3 [+] }{2:<est-functional-diff-screen-1.2 Xtest-functional-diff-screen-1 }|
:2,6diffget screen-1.2 |
]])
end)
@@ -118,17 +106,17 @@ describe('Diff mode screen with 3 diffs open', function()
feed('2<c-w>w')
feed(':5,7diffget screen-1.3<cr>')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 }^ │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: }{2:---------------------------}│{1: }{10: 3 }{4:<<<<<<< HEAD }│{1: }{10: }{2:---------------------------}|
- {1: }{10: }{2:---------------------------}│{1: }{10: 4 }{9: AAA }│{1: }{10: 3 }{9: AAA }|
- {1: }{10: 3 }{9: BBB }│{1: }{10: 5 }{9: BBB }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 4 }{9: }{8:BBB}{9: }│{1: }{10: 6 }{9: }{8:BBB}{9: }│{1: }{10: 4 }{9: }{8:AAA}{9: }|
- {1: }{10: 5 }{9: }{8:BBB}{9: }│{1: }{10: 7 }{9: }{8:BBB}{9: }│{1: }{10: 5 }{9: }{8:AAA}{9: }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 8 }{4:>>>>>>> branch1 }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 6 } │{1: }{10: 9 } │{1: }{10: 6 } |
- {6:~ }│{6:~ }│{6:~ }|*5
- {3:<test-functional-diff-screen-1.3 }{7:<functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 }^ │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 3 }{22:<<<<<<< HEAD }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 4 }{4: AAA }│{7: }{8: 3 }{4: AAA }|
+ {7: }{8: 3 }{4: BBB }│{7: }{8: 5 }{4: BBB }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 4 }{4: }{27:BBB}{4: }│{7: }{8: 6 }{4: }{27:BBB}{4: }│{7: }{8: 4 }{4: }{27:AAA}{4: }|
+ {7: }{8: 5 }{4: }{27:BBB}{4: }│{7: }{8: 7 }{4: }{27:BBB}{4: }│{7: }{8: 5 }{4: }{27:AAA}{4: }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 8 }{22:>>>>>>> branch1 }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 6 } │{7: }{8: 9 } │{7: }{8: 6 } |
+ {1:~ }│{1:~ }│{1:~ }|*5
+ {2:<test-functional-diff-screen-1.3 }{3:<functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:5,7diffget screen-1.3 |
]])
end)
@@ -137,20 +125,20 @@ describe('Diff mode screen with 3 diffs open', function()
feed('3<c-w>w')
feed(':5,6diffget screen-1.2<cr>')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } │{1: }{10: 1 }^ |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: }{2:---------------------------}│{1: }{10: 3 }{4:<<<<<<< HEAD }│{1: }{10: }{2:---------------------------}|
- {1: }{10: }{2:---------------------------}│{1: }{10: 4 }{9: AAA }│{1: }{10: 3 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 5 }{9: AAA }│{1: }{10: 4 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 6 }{9: AAA }│{1: }{10: 5 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 7 }{9:======= }│{1: }{10: 6 }{9:======= }|
- {1: }{10: 3 } BBB │{1: }{10: 8 } BBB │{1: }{10: 7 } BBB |
- {1: }{10: 4 } BBB │{1: }{10: 9 } BBB │{1: }{10: 8 } BBB |
- {1: }{10: 5 } BBB │{1: }{10: 10 } BBB │{1: }{10: 9 } BBB |
- {1: }{10: }{2:---------------------------}│{1: }{10: 11 }{9:>>>>>>> branch1 }│{1: }{10: 10 }{9:>>>>>>> branch1 }|
- {1: }{10: 6 } │{1: }{10: 12 } │{1: }{10: 11 } |
- {6:~ }│{6:~ }│{6:~ }|*2
- {3:<test-functional-diff-screen-1.3 <est-functional-diff-screen-1.2 }{7:<st-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 } │{7: }{8: 1 }^ |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 3 }{22:<<<<<<< HEAD }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 4 }{4: AAA }│{7: }{8: 3 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 5 }{4: AAA }│{7: }{8: 4 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 6 }{4: AAA }│{7: }{8: 5 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 7 }{4:======= }│{7: }{8: 6 }{4:======= }|
+ {7: }{8: 3 } BBB │{7: }{8: 8 } BBB │{7: }{8: 7 } BBB |
+ {7: }{8: 4 } BBB │{7: }{8: 9 } BBB │{7: }{8: 8 } BBB |
+ {7: }{8: 5 } BBB │{7: }{8: 10 } BBB │{7: }{8: 9 } BBB |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 11 }{4:>>>>>>> branch1 }│{7: }{8: 10 }{4:>>>>>>> branch1 }|
+ {7: }{8: 6 } │{7: }{8: 12 } │{7: }{8: 11 } |
+ {1:~ }│{1:~ }│{1:~ }|*2
+ {2:<test-functional-diff-screen-1.3 <est-functional-diff-screen-1.2 }{3:<st-functional-diff-screen-1 [+] }|
:5,6diffget screen-1.2 |
]])
end)
@@ -159,20 +147,20 @@ describe('Diff mode screen with 3 diffs open', function()
feed('2<c-w>w')
feed(':6,8diffput screen-1<cr>')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 }^ │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: }{2:---------------------------}│{1: }{10: 3 }{4:<<<<<<< HEAD }│{1: }{10: }{2:---------------------------}|
- {1: }{10: }{2:---------------------------}│{1: }{10: 4 }{9: AAA }│{1: }{10: 3 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 5 }{9: AAA }│{1: }{10: 4 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 6 }{9: AAA }│{1: }{10: 5 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 7 }{9:======= }│{1: }{10: 6 }{9:======= }|
- {1: }{10: 3 }{9: BBB }│{1: }{10: 8 }{9: BBB }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 4 }{9: BBB }│{1: }{10: 9 }{9: BBB }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 5 } BBB │{1: }{10: 10 } BBB │{1: }{10: 7 } BBB |
- {1: }{10: }{2:---------------------------}│{1: }{10: 11 }{4:>>>>>>> branch1 }│{1: }{10: }{2:---------------------------}|
- {1: }{10: 6 } │{1: }{10: 12 } │{1: }{10: 8 } |
- {6:~ }│{6:~ }│{6:~ }|*2
- {3:<test-functional-diff-screen-1.3 }{7:<est-functional-diff-screen-1.2 }{3:<st-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 }^ │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 3 }{22:<<<<<<< HEAD }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 4 }{4: AAA }│{7: }{8: 3 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 5 }{4: AAA }│{7: }{8: 4 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 6 }{4: AAA }│{7: }{8: 5 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 7 }{4:======= }│{7: }{8: 6 }{4:======= }|
+ {7: }{8: 3 }{4: BBB }│{7: }{8: 8 }{4: BBB }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 4 }{4: BBB }│{7: }{8: 9 }{4: BBB }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 5 } BBB │{7: }{8: 10 } BBB │{7: }{8: 7 } BBB |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 11 }{22:>>>>>>> branch1 }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: 6 } │{7: }{8: 12 } │{7: }{8: 8 } |
+ {1:~ }│{1:~ }│{1:~ }|*2
+ {2:<test-functional-diff-screen-1.3 }{3:<est-functional-diff-screen-1.2 }{2:<st-functional-diff-screen-1 [+] }|
:6,8diffput screen-1 |
]])
end)
@@ -180,20 +168,20 @@ describe('Diff mode screen with 3 diffs open', function()
feed('2<c-w>w')
feed(':6,11diffput screen-1<cr>')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 }^ │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: }{2:---------------------------}│{1: }{10: 3 }{4:<<<<<<< HEAD }│{1: }{10: }{2:---------------------------}|
- {1: }{10: }{2:---------------------------}│{1: }{10: 4 }{9: AAA }│{1: }{10: 3 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 5 }{9: AAA }│{1: }{10: 4 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 6 }{9: AAA }│{1: }{10: 5 }{9: AAA }|
- {1: }{10: }{2:---------------------------}│{1: }{10: 7 }{9:======= }│{1: }{10: 6 }{9:======= }|
- {1: }{10: 3 } BBB │{1: }{10: 8 } BBB │{1: }{10: 7 } BBB |
- {1: }{10: 4 } BBB │{1: }{10: 9 } BBB │{1: }{10: 8 } BBB |
- {1: }{10: 5 } BBB │{1: }{10: 10 } BBB │{1: }{10: 9 } BBB |
- {1: }{10: }{2:---------------------------}│{1: }{10: 11 }{9:>>>>>>> branch1 }│{1: }{10: 10 }{9:>>>>>>> branch1 }|
- {1: }{10: 6 } │{1: }{10: 12 } │{1: }{10: 11 } |
- {6:~ }│{6:~ }│{6:~ }|*2
- {3:<test-functional-diff-screen-1.3 }{7:<est-functional-diff-screen-1.2 }{3:<st-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 }^ │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 3 }{22:<<<<<<< HEAD }│{7: }{8: }{23:---------------------------}|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 4 }{4: AAA }│{7: }{8: 3 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 5 }{4: AAA }│{7: }{8: 4 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 6 }{4: AAA }│{7: }{8: 5 }{4: AAA }|
+ {7: }{8: }{23:---------------------------}│{7: }{8: 7 }{4:======= }│{7: }{8: 6 }{4:======= }|
+ {7: }{8: 3 } BBB │{7: }{8: 8 } BBB │{7: }{8: 7 } BBB |
+ {7: }{8: 4 } BBB │{7: }{8: 9 } BBB │{7: }{8: 8 } BBB |
+ {7: }{8: 5 } BBB │{7: }{8: 10 } BBB │{7: }{8: 9 } BBB |
+ {7: }{8: }{23:---------------------------}│{7: }{8: 11 }{4:>>>>>>> branch1 }│{7: }{8: 10 }{4:>>>>>>> branch1 }|
+ {7: }{8: 6 } │{7: }{8: 12 } │{7: }{8: 11 } |
+ {1:~ }│{1:~ }│{1:~ }|*2
+ {2:<test-functional-diff-screen-1.3 }{3:<est-functional-diff-screen-1.2 }{2:<st-functional-diff-screen-1 [+] }|
:6,11diffput screen-1 |
]])
end)
@@ -229,18 +217,6 @@ describe('Diff mode screen with 2 diffs open', function()
screen = Screen.new(100, 20)
screen:attach()
- screen:set_default_attr_ids({
- [1] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.Gray },
- [2] = { foreground = Screen.colors.Blue1, bold = true, background = Screen.colors.LightCyan1 },
- [3] = { reverse = true },
- [4] = { background = Screen.colors.LightBlue },
- [5] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.LightGray },
- [6] = { foreground = Screen.colors.Blue1, bold = true },
- [7] = { reverse = true, bold = true },
- [8] = { background = Screen.colors.Red1, bold = true },
- [10] = { foreground = Screen.colors.Brown },
- [9] = { background = Screen.colors.Plum1 },
- })
feed('<c-w>=')
feed(':windo set nu!<cr>')
end)
@@ -290,20 +266,20 @@ something
feed('1<c-w>w')
feed(':5,9diffget<cr>')
screen:expect([[
- {1:+ }{10: 1 }{5:^+-- 7 lines: common line··················}│{1:+ }{10: 1 }{5:+-- 7 lines: common line···················}|
- {1: }{10: 8 }xyz │{1: }{10: 8 }xyz |
- {1: }{10: 9 }DEFabc │{1: }{10: 9 }DEFabc |
- {1: }{10: 10 }DEFabc │{1: }{10: 10 }DEFabc |
- {1: }{10: 11 }DEFabc │{1: }{10: 11 }DEFabc |
- {1: }{10: 12 }common line │{1: }{10: 12 }common line |
- {1: }{10: 13 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 14 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 15 }something │{1: }{10: 17 }something |
- {1: }{10: 16 } │{1: }{10: 18 } |
- {6:~ }│{6:~ }|*6
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7:+ }{8: 1 }{13:^+-- 7 lines: common line··················}│{7:+ }{8: 1 }{13:+-- 7 lines: common line···················}|
+ {7: }{8: 8 }xyz │{7: }{8: 8 }xyz |
+ {7: }{8: 9 }DEFabc │{7: }{8: 9 }DEFabc |
+ {7: }{8: 10 }DEFabc │{7: }{8: 10 }DEFabc |
+ {7: }{8: 11 }DEFabc │{7: }{8: 11 }DEFabc |
+ {7: }{8: 12 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 13 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 14 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 15 }something │{7: }{8: 17 }something |
+ {7: }{8: 16 } │{7: }{8: 18 } |
+ {1:~ }│{1:~ }|*6
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:5,9diffget |
]])
end)
@@ -311,23 +287,23 @@ something
feed('2<c-w>w')
feed(':5,10diffget<cr>')
screen:expect([[
- {1:- }{10: 1 } │{1:- }{10: 1 }^ |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }ABCabc │{1: }{10: 5 }ABCabc |
- {1: }{10: 6 }ABCabc │{1: }{10: 6 }ABCabc |
- {1: }{10: 7 }ABCabc │{1: }{10: 7 }ABCabc |
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 8 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 9 }common line |
- {1: }{10: 10 }common line │{1: }{10: 10 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 11 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 12 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 13 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 14 }something |
- {1: }{10: 13 } │{1: }{10: 15 } |
- {6:~ }│{6:~ }|*3
- {3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
+ {7:- }{8: 1 } │{7:- }{8: 1 }^ |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }ABCabc │{7: }{8: 5 }ABCabc |
+ {7: }{8: 6 }ABCabc │{7: }{8: 6 }ABCabc |
+ {7: }{8: 7 }ABCabc │{7: }{8: 7 }ABCabc |
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 8 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 9 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 10 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 11 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 12 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 13 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 14 }something |
+ {7: }{8: 13 } │{7: }{8: 15 } |
+ {1:~ }│{1:~ }|*3
+ {2:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
:5,10diffget |
]])
end)
@@ -335,21 +311,21 @@ something
feed('2<c-w>w')
feed(':4,17diffget<cr>')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 }^ |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }ABCabc │{1: }{10: 5 }ABCabc |
- {1: }{10: 6 }ABCabc │{1: }{10: 6 }ABCabc |
- {1: }{10: 7 }ABCabc │{1: }{10: 7 }ABCabc |
- {1: }{10: 8 }ABCabc │{1: }{10: 8 }ABCabc |
- {1: }{10: 9 }common line │{1: }{10: 9 }common line |
- {1: }{10: 10 }common line │{1: }{10: 10 }common line |
- {1: }{10: 11 }common line │{1: }{10: 11 }common line |
- {1: }{10: 12 }something │{1: }{10: 12 }something |
- {1: }{10: 13 } │{1: }{10: 13 } |
- {6:~ }│{6:~ }|*5
- {3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 }^ |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }ABCabc │{7: }{8: 5 }ABCabc |
+ {7: }{8: 6 }ABCabc │{7: }{8: 6 }ABCabc |
+ {7: }{8: 7 }ABCabc │{7: }{8: 7 }ABCabc |
+ {7: }{8: 8 }ABCabc │{7: }{8: 8 }ABCabc |
+ {7: }{8: 9 }common line │{7: }{8: 9 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 10 }common line |
+ {7: }{8: 11 }common line │{7: }{8: 11 }common line |
+ {7: }{8: 12 }something │{7: }{8: 12 }something |
+ {7: }{8: 13 } │{7: }{8: 13 } |
+ {1:~ }│{1:~ }|*5
+ {2:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
:4,17diffget |
]])
end)
@@ -357,25 +333,25 @@ something
feed('1<c-w>w')
feed(':4,12diffget<cr>')
screen:expect([[
- {1: }{10: 1 }^ │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }DEFabc │{1: }{10: 5 }DEFabc |
- {1: }{10: 6 }xyz │{1: }{10: 6 }xyz |
- {1: }{10: 7 }xyz │{1: }{10: 7 }xyz |
- {1: }{10: 8 }xyz │{1: }{10: 8 }xyz |
- {1: }{10: 9 }DEFabc │{1: }{10: 9 }DEFabc |
- {1: }{10: 10 }DEFabc │{1: }{10: 10 }DEFabc |
- {1: }{10: 11 }DEFabc │{1: }{10: 11 }DEFabc |
- {1: }{10: 12 }common line │{1: }{10: 12 }common line |
- {1: }{10: 13 }common line │{1: }{10: 13 }common line |
- {1: }{10: 14 }DEF │{1: }{10: 14 }DEF |
- {1: }{10: 15 }common line │{1: }{10: 15 }common line |
- {1: }{10: 16 }DEF │{1: }{10: 16 }DEF |
- {1: }{10: 17 }something │{1: }{10: 17 }something |
- {1: }{10: 18 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }^ │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }DEFabc │{7: }{8: 5 }DEFabc |
+ {7: }{8: 6 }xyz │{7: }{8: 6 }xyz |
+ {7: }{8: 7 }xyz │{7: }{8: 7 }xyz |
+ {7: }{8: 8 }xyz │{7: }{8: 8 }xyz |
+ {7: }{8: 9 }DEFabc │{7: }{8: 9 }DEFabc |
+ {7: }{8: 10 }DEFabc │{7: }{8: 10 }DEFabc |
+ {7: }{8: 11 }DEFabc │{7: }{8: 11 }DEFabc |
+ {7: }{8: 12 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 13 }common line │{7: }{8: 13 }common line |
+ {7: }{8: 14 }DEF │{7: }{8: 14 }DEF |
+ {7: }{8: 15 }common line │{7: }{8: 15 }common line |
+ {7: }{8: 16 }DEF │{7: }{8: 16 }DEF |
+ {7: }{8: 17 }something │{7: }{8: 17 }something |
+ {7: }{8: 18 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:4,12diffget |
]])
end)
@@ -384,25 +360,25 @@ something
feed('5gg')
feed('do')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }^DEFabc │{1: }{10: 5 }DEFabc |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }^DEFabc │{7: }{8: 5 }DEFabc |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -411,25 +387,25 @@ something
feed('6gg')
feed('do')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }^DEFabc │{1: }{10: 9 }DEFabc |
- {1: }{10: 7 }DEFabc │{1: }{10: 10 }DEFabc |
- {1: }{10: 8 }DEFabc │{1: }{10: 11 }DEFabc |
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }^DEFabc │{7: }{8: 9 }DEFabc |
+ {7: }{8: 7 }DEFabc │{7: }{8: 10 }DEFabc |
+ {7: }{8: 8 }DEFabc │{7: }{8: 11 }DEFabc |
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -438,25 +414,25 @@ something
feed('7gg')
feed('do')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }DEFabc │{1: }{10: 9 }DEFabc |
- {1: }{10: 7 }^DEFabc │{1: }{10: 10 }DEFabc |
- {1: }{10: 8 }DEFabc │{1: }{10: 11 }DEFabc |
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }DEFabc │{7: }{8: 9 }DEFabc |
+ {7: }{8: 7 }^DEFabc │{7: }{8: 10 }DEFabc |
+ {7: }{8: 8 }DEFabc │{7: }{8: 11 }DEFabc |
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -465,25 +441,25 @@ something
feed('11gg')
feed('do')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: 11 }DEF │{1: }{10: 14 }DEF |
- {1: }{10: 12 }^common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 13 }something │{1: }{10: 17 }something |
- {1: }{10: 14 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: 11 }DEF │{7: }{8: 14 }DEF |
+ {7: }{8: 12 }^common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 13 }something │{7: }{8: 17 }something |
+ {7: }{8: 14 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -492,25 +468,25 @@ something
feed('12gg')
feed('do')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: 12 }DEF │{1: }{10: 16 }DEF |
- {1: }{10: 13 }^something │{1: }{10: 17 }something |
- {1: }{10: 14 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: 12 }DEF │{7: }{8: 16 }DEF |
+ {7: }{8: 13 }^something │{7: }{8: 17 }something |
+ {7: }{8: 14 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -519,25 +495,25 @@ something
feed('5gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }^ABCabc │{1: }{10: 5 }ABCabc |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }^ABCabc │{7: }{8: 5 }ABCabc |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 [+] }|
:e |
]])
end)
@@ -546,25 +522,25 @@ something
feed('6gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }^ABCabc │{1: }{10: 9 }ABCabc |
- {1: }{10: 7 }ABCabc │{1: }{10: 10 }ABCabc |
- {1: }{10: 8 }ABCabc │{1: }{10: 11 }ABCabc |
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }^ABCabc │{7: }{8: 9 }ABCabc |
+ {7: }{8: 7 }ABCabc │{7: }{8: 10 }ABCabc |
+ {7: }{8: 8 }ABCabc │{7: }{8: 11 }ABCabc |
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 [+] }|
:e |
]])
end)
@@ -573,25 +549,25 @@ something
feed('7gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }ABCabc │{1: }{10: 9 }ABCabc |
- {1: }{10: 7 }^ABCabc │{1: }{10: 10 }ABCabc |
- {1: }{10: 8 }ABCabc │{1: }{10: 11 }ABCabc |
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }ABCabc │{7: }{8: 9 }ABCabc |
+ {7: }{8: 7 }^ABCabc │{7: }{8: 10 }ABCabc |
+ {7: }{8: 8 }ABCabc │{7: }{8: 11 }ABCabc |
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 [+] }|
:e |
]])
end)
@@ -600,25 +576,25 @@ something
feed('11gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: 11 }^common line │{1: }{10: 14 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 15 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 16 }something |
- {1: }{10: 13 } │{1: }{10: 17 } |
- {6:~ }│{6:~ }|
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: 11 }^common line │{7: }{8: 14 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 15 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 16 }something |
+ {7: }{8: 13 } │{7: }{8: 17 } |
+ {1:~ }│{1:~ }|
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 [+] }|
:e |
]])
end)
@@ -627,25 +603,25 @@ something
feed('12gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: 12 }^something │{1: }{10: 16 }something |
- {1: }{10: 13 } │{1: }{10: 17 } |
- {6:~ }│{6:~ }|
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: 12 }^something │{7: }{8: 16 }something |
+ {7: }{8: 13 } │{7: }{8: 17 } |
+ {1:~ }│{1:~ }|
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 [+] }|
:e |
]])
end)
@@ -654,25 +630,25 @@ something
feed('6gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: 6 }xyz │{1: }{10: 6 }^xyz |
- {1: }{10: 7 }xyz │{1: }{10: 7 }xyz |
- {1: }{10: 8 }xyz │{1: }{10: 8 }xyz |
- {1: }{10: 9 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 10 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 11 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 12 }common line │{1: }{10: 12 }common line |
- {1: }{10: 13 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 14 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 15 }something │{1: }{10: 17 }something |
- {1: }{10: 16 } │{1: }{10: 18 } |
- {3:Xtest-functional-diff-screen-1.2 [+] }{7:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: 6 }xyz │{7: }{8: 6 }^xyz |
+ {7: }{8: 7 }xyz │{7: }{8: 7 }xyz |
+ {7: }{8: 8 }xyz │{7: }{8: 8 }xyz |
+ {7: }{8: 9 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 10 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 11 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 12 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 13 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 14 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 15 }something │{7: }{8: 17 }something |
+ {7: }{8: 16 } │{7: }{8: 18 } |
+ {2:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -681,25 +657,25 @@ something
feed('8gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: 6 }xyz │{1: }{10: 6 }xyz |
- {1: }{10: 7 }xyz │{1: }{10: 7 }xyz |
- {1: }{10: 8 }xyz │{1: }{10: 8 }^xyz |
- {1: }{10: 9 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 10 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 11 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 12 }common line │{1: }{10: 12 }common line |
- {1: }{10: 13 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 14 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 15 }something │{1: }{10: 17 }something |
- {1: }{10: 16 } │{1: }{10: 18 } |
- {3:Xtest-functional-diff-screen-1.2 [+] }{7:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: 6 }xyz │{7: }{8: 6 }xyz |
+ {7: }{8: 7 }xyz │{7: }{8: 7 }xyz |
+ {7: }{8: 8 }xyz │{7: }{8: 8 }^xyz |
+ {7: }{8: 9 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 10 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 11 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 12 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 13 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 14 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 15 }something │{7: }{8: 17 }something |
+ {7: }{8: 16 } │{7: }{8: 18 } |
+ {2:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -708,25 +684,25 @@ something
feed('9gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }DEFabc │{1: }{10: 9 }^DEFabc |
- {1: }{10: 7 }DEFabc │{1: }{10: 10 }DEFabc |
- {1: }{10: 8 }DEFabc │{1: }{10: 11 }DEFabc |
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 16 }{4:DEF }|
- {1: }{10: 12 }something │{1: }{10: 17 }something |
- {1: }{10: 13 } │{1: }{10: 18 } |
- {3:Xtest-functional-diff-screen-1.2 [+] }{7:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }DEFabc │{7: }{8: 9 }^DEFabc |
+ {7: }{8: 7 }DEFabc │{7: }{8: 10 }DEFabc |
+ {7: }{8: 8 }DEFabc │{7: }{8: 11 }DEFabc |
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 16 }{22:DEF }|
+ {7: }{8: 12 }something │{7: }{8: 17 }something |
+ {7: }{8: 13 } │{7: }{8: 18 } |
+ {2:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -735,25 +711,25 @@ something
feed('17gg')
feed('dp')
screen:expect([[
- {1: }{10: 1 } │{1: }{10: 1 } |
- {1: }{10: 2 }common line │{1: }{10: 2 }common line |
- {1: }{10: 3 }common line │{1: }{10: 3 }common line |
- {1: }{10: 4 } │{1: }{10: 4 } |
- {1: }{10: 5 }{8:ABC}{9:abc }│{1: }{10: 5 }{8:DEF}{9:abc }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 6 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 7 }{4:xyz }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 8 }{4:xyz }|
- {1: }{10: 6 }{8:ABC}{9:abc }│{1: }{10: 9 }{8:DEF}{9:abc }|
- {1: }{10: 7 }{8:ABC}{9:abc }│{1: }{10: 10 }{8:DEF}{9:abc }|
- {1: }{10: 8 }{8:ABC}{9:abc }│{1: }{10: 11 }{8:DEF}{9:abc }|
- {1: }{10: 9 }common line │{1: }{10: 12 }common line |
- {1: }{10: 10 }common line │{1: }{10: 13 }common line |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 14 }{4:DEF }|
- {1: }{10: 11 }common line │{1: }{10: 15 }common line |
- {1: }{10: 12 }DEF │{1: }{10: 16 }DEF |
- {1: }{10: 13 }something │{1: }{10: 17 }^something |
- {1: }{10: 14 } │{1: }{10: 18 } |
- {3:Xtest-functional-diff-screen-1.2 [+] }{7:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 } │{7: }{8: 1 } |
+ {7: }{8: 2 }common line │{7: }{8: 2 }common line |
+ {7: }{8: 3 }common line │{7: }{8: 3 }common line |
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {7: }{8: 5 }{27:ABC}{4:abc }│{7: }{8: 5 }{27:DEF}{4:abc }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 6 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 7 }{22:xyz }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 8 }{22:xyz }|
+ {7: }{8: 6 }{27:ABC}{4:abc }│{7: }{8: 9 }{27:DEF}{4:abc }|
+ {7: }{8: 7 }{27:ABC}{4:abc }│{7: }{8: 10 }{27:DEF}{4:abc }|
+ {7: }{8: 8 }{27:ABC}{4:abc }│{7: }{8: 11 }{27:DEF}{4:abc }|
+ {7: }{8: 9 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 10 }common line │{7: }{8: 13 }common line |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 14 }{22:DEF }|
+ {7: }{8: 11 }common line │{7: }{8: 15 }common line |
+ {7: }{8: 12 }DEF │{7: }{8: 16 }DEF |
+ {7: }{8: 13 }something │{7: }{8: 17 }^something |
+ {7: }{8: 14 } │{7: }{8: 18 } |
+ {2:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -778,13 +754,13 @@ d
it('display results', function()
screen:expect([[
- {1: }{10: 1 }{4:^ }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 2 }{9:abc d }│{1: }{10: 1 }{8:// }{9:abc d }|
- {1: }{10: 3 }{9:d }│{1: }{10: 2 }{8:// }{9:d }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 3 }{4:// d }|
- {1: }{10: 4 } │{1: }{10: 4 } |
- {6:~ }│{6:~ }|*13
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }{22:^ }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 2 }{4:abc d }│{7: }{8: 1 }{27:// }{4:abc d }|
+ {7: }{8: 3 }{4:d }│{7: }{8: 2 }{27:// }{4:d }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 3 }{22:// d }|
+ {7: }{8: 4 } │{7: }{8: 4 } |
+ {1:~ }│{1:~ }|*13
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -813,15 +789,15 @@ void testFunction () {
it('display results', function()
screen:expect([[
- {1: }{10: 1 }^void testFunction () { │{1: }{10: 1 }void testFunction () { |
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 2 }{4: for (int i = 0; i < 10; i++) { }|
- {1: }{10: 2 }{9: }{8:// for (int j = 0; j < 10; i}{9:++) { }│{1: }{10: 3 }{9: }{8:for (int j = 0; j < 10; j}{9:++) { }|
- {1: }{10: 3 }{9: }{8:// }{9:} }│{1: }{10: 4 }{9: } }|
- {1: }{10: }{2:-------------------------------------------}│{1: }{10: 5 }{4: } }|
- {1: }{10: 4 }} │{1: }{10: 6 }} |
- {1: }{10: 5 } │{1: }{10: 7 } |
- {6:~ }│{6:~ }|*11
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }^void testFunction () { │{7: }{8: 1 }void testFunction () { |
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 2 }{22: for (int i = 0; i < 10; i++) { }|
+ {7: }{8: 2 }{4: }{27:// for (int j = 0; j < 10; i}{4:++) { }│{7: }{8: 3 }{4: }{27:for (int j = 0; j < 10; j}{4:++) { }|
+ {7: }{8: 3 }{4: }{27:// }{4:} }│{7: }{8: 4 }{4: } }|
+ {7: }{8: }{23:-------------------------------------------}│{7: }{8: 5 }{22: } }|
+ {7: }{8: 4 }} │{7: }{8: 6 }} |
+ {7: }{8: 5 } │{7: }{8: 7 } |
+ {1:~ }│{1:~ }|*11
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -851,17 +827,17 @@ void testFunction () {
it('display results', function()
screen:expect([[
- {1: }{10: 1 }{4:^?Z }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 2 }{8:?}{9:A }│{1: }{10: 1 }{8:!}{9:A }|
- {1: }{10: 3 }{8:?}{9:B }│{1: }{10: 2 }{8:!}{9:B }|
- {1: }{10: 4 }{8:?}{9:C }│{1: }{10: 3 }{8:!}{9:C }|
- {1: }{10: 5 }{4:?A }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 6 }{4:?B }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 7 }{4:?B }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 8 }{4:?C }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 9 } │{1: }{10: 4 } |
- {6:~ }│{6:~ }|*9
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }{22:^?Z }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 2 }{27:?}{4:A }│{7: }{8: 1 }{27:!}{4:A }|
+ {7: }{8: 3 }{27:?}{4:B }│{7: }{8: 2 }{27:!}{4:B }|
+ {7: }{8: 4 }{27:?}{4:C }│{7: }{8: 3 }{27:!}{4:C }|
+ {7: }{8: 5 }{22:?A }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 6 }{22:?B }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 7 }{22:?B }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 8 }{22:?C }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 9 } │{7: }{8: 4 } |
+ {1:~ }│{1:~ }|*9
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -891,17 +867,17 @@ void testFunction () {
it('display results', function()
screen:expect([[
- {1: }{10: 1 }{4:^?A }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 2 }{4:?Z }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 3 }{4:?B }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 4 }{4:?C }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 5 }{8:?}{9:A }│{1: }{10: 1 }{8:!}{9:A }|
- {1: }{10: 6 }{8:?}{9:B }│{1: }{10: 2 }{8:!}{9:B }|
- {1: }{10: 7 }{8:?}{9:C }│{1: }{10: 3 }{8:!}{9:C }|
- {1: }{10: 8 }{4:?C }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 9 } │{1: }{10: 4 } |
- {6:~ }│{6:~ }|*9
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }{22:^?A }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 2 }{22:?Z }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 3 }{22:?B }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 4 }{22:?C }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 5 }{27:?}{4:A }│{7: }{8: 1 }{27:!}{4:A }|
+ {7: }{8: 6 }{27:?}{4:B }│{7: }{8: 2 }{27:!}{4:B }|
+ {7: }{8: 7 }{27:?}{4:C }│{7: }{8: 3 }{27:!}{4:C }|
+ {7: }{8: 8 }{22:?C }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 9 } │{7: }{8: 4 } |
+ {1:~ }│{1:~ }|*9
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
end)
@@ -953,50 +929,50 @@ something
feed('1<c-w>w')
-- linematch is disabled for the longest diff because it's combined line length is over 10
screen:expect([[
- {1: }{10: 1 }^common line │{1: }{10: 1 }common line |
- {1: }{10: 2 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 3 }{8:GHI}{9: }│{1: }{10: 2 }{8:HIL}{9: }|
- {1: }{10: 4 }{4:something }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 5 } │{1: }{10: 3 } |
- {1: }{10: 6 }{9:a}{8:DEF}{9:abc }│{1: }{10: 4 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 7 }{8:xyz}{9: }│{1: }{10: 5 }{8:aABCabc}{9: }|
- {1: }{10: 8 }{8:xyz}{9: }│{1: }{10: 6 }{8:aABCabc}{9: }|
- {1: }{10: 9 }{8:xyz}{9: }│{1: }{10: 7 }{8:aABCabc}{9: }|
- {1: }{10: 10 }{4:aDEFabc }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 11 }{4:aDEFabc }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 12 }{4:aDEFabc }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 13 }common line │{1: }{10: 8 }common line |
- {1: }{10: 14 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 15 }{8:GHI}{9: }│{1: }{10: 9 }{8:HIL}{9: }|
- {1: }{10: 16 }{4:something else }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 17 }common line │{1: }{10: 10 }common line |
- {1: }{10: 18 }something │{1: }{10: 11 }something |
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }^common line │{7: }{8: 1 }common line |
+ {7: }{8: 2 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 3 }{27:GHI}{4: }│{7: }{8: 2 }{27:HIL}{4: }|
+ {7: }{8: 4 }{22:something }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 5 } │{7: }{8: 3 } |
+ {7: }{8: 6 }{4:a}{27:DEF}{4:abc }│{7: }{8: 4 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 7 }{27:xyz}{4: }│{7: }{8: 5 }{27:aABCabc}{4: }|
+ {7: }{8: 8 }{27:xyz}{4: }│{7: }{8: 6 }{27:aABCabc}{4: }|
+ {7: }{8: 9 }{27:xyz}{4: }│{7: }{8: 7 }{27:aABCabc}{4: }|
+ {7: }{8: 10 }{22:aDEFabc }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 11 }{22:aDEFabc }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 12 }{22:aDEFabc }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 13 }common line │{7: }{8: 8 }common line |
+ {7: }{8: 14 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 15 }{27:GHI}{4: }│{7: }{8: 9 }{27:HIL}{4: }|
+ {7: }{8: 16 }{22:something else }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 17 }common line │{7: }{8: 10 }common line |
+ {7: }{8: 18 }something │{7: }{8: 11 }something |
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 }|
:e |
]])
-- enable it by increasing the number
feed(':set diffopt-=linematch:10<cr>')
feed(':set diffopt+=linematch:30<cr>')
screen:expect([[
- {1: }{10: 1 }^common line │{1: }{10: 1 }common line |
- {1: }{10: 2 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 3 }{8:GHI}{9: }│{1: }{10: 2 }{8:HIL}{9: }|
- {1: }{10: 4 }{4:something }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 5 } │{1: }{10: 3 } |
- {1: }{10: 6 }{9:a}{8:DEF}{9:abc }│{1: }{10: 4 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 7 }{4:xyz }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 8 }{4:xyz }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 9 }{4:xyz }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 10 }{9:a}{8:DEF}{9:abc }│{1: }{10: 5 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 11 }{9:a}{8:DEF}{9:abc }│{1: }{10: 6 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 12 }{9:a}{8:DEF}{9:abc }│{1: }{10: 7 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 13 }common line │{1: }{10: 8 }common line |
- {1: }{10: 14 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 15 }{8:GHI}{9: }│{1: }{10: 9 }{8:HIL}{9: }|
- {1: }{10: 16 }{4:something else }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 17 }common line │{1: }{10: 10 }common line |
- {1: }{10: 18 }something │{1: }{10: 11 }something |
- {7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }^common line │{7: }{8: 1 }common line |
+ {7: }{8: 2 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 3 }{27:GHI}{4: }│{7: }{8: 2 }{27:HIL}{4: }|
+ {7: }{8: 4 }{22:something }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 5 } │{7: }{8: 3 } |
+ {7: }{8: 6 }{4:a}{27:DEF}{4:abc }│{7: }{8: 4 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 7 }{22:xyz }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 8 }{22:xyz }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 9 }{22:xyz }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 10 }{4:a}{27:DEF}{4:abc }│{7: }{8: 5 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 11 }{4:a}{27:DEF}{4:abc }│{7: }{8: 6 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 12 }{4:a}{27:DEF}{4:abc }│{7: }{8: 7 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 13 }common line │{7: }{8: 8 }common line |
+ {7: }{8: 14 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 15 }{27:GHI}{4: }│{7: }{8: 9 }{27:HIL}{4: }|
+ {7: }{8: 16 }{22:something else }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 17 }common line │{7: }{8: 10 }common line |
+ {7: }{8: 18 }something │{7: }{8: 11 }something |
+ {3:Xtest-functional-diff-screen-1.2 }{2:Xtest-functional-diff-screen-1 }|
:set diffopt+=linematch:30 |
]])
end
@@ -1005,25 +981,25 @@ something
feed('2<c-w>w')
feed(':1,12diffget<cr>')
screen:expect([[
- {1: }{10: 1 }common line │{1: }{10: 1 }^common line |
- {1: }{10: 2 }DEF │{1: }{10: 2 }DEF |
- {1: }{10: 3 }GHI │{1: }{10: 3 }GHI |
- {1: }{10: 4 }something │{1: }{10: 4 }something |
- {1: }{10: 5 } │{1: }{10: 5 } |
- {1: }{10: 6 }aDEFabc │{1: }{10: 6 }aDEFabc |
- {1: }{10: 7 }xyz │{1: }{10: 7 }xyz |
- {1: }{10: 8 }xyz │{1: }{10: 8 }xyz |
- {1: }{10: 9 }xyz │{1: }{10: 9 }xyz |
- {1: }{10: 10 }aDEFabc │{1: }{10: 10 }aDEFabc |
- {1: }{10: 11 }aDEFabc │{1: }{10: 11 }aDEFabc |
- {1: }{10: 12 }aDEFabc │{1: }{10: 12 }aDEFabc |
- {1: }{10: 13 }common line │{1: }{10: 13 }common line |
- {1: }{10: 14 }DEF │{1: }{10: 14 }DEF |
- {1: }{10: 15 }GHI │{1: }{10: 15 }GHI |
- {1: }{10: 16 }something else │{1: }{10: 16 }something else |
- {1: }{10: 17 }common line │{1: }{10: 17 }common line |
- {1: }{10: 18 }something │{1: }{10: 18 }something |
- {3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 }common line │{7: }{8: 1 }^common line |
+ {7: }{8: 2 }DEF │{7: }{8: 2 }DEF |
+ {7: }{8: 3 }GHI │{7: }{8: 3 }GHI |
+ {7: }{8: 4 }something │{7: }{8: 4 }something |
+ {7: }{8: 5 } │{7: }{8: 5 } |
+ {7: }{8: 6 }aDEFabc │{7: }{8: 6 }aDEFabc |
+ {7: }{8: 7 }xyz │{7: }{8: 7 }xyz |
+ {7: }{8: 8 }xyz │{7: }{8: 8 }xyz |
+ {7: }{8: 9 }xyz │{7: }{8: 9 }xyz |
+ {7: }{8: 10 }aDEFabc │{7: }{8: 10 }aDEFabc |
+ {7: }{8: 11 }aDEFabc │{7: }{8: 11 }aDEFabc |
+ {7: }{8: 12 }aDEFabc │{7: }{8: 12 }aDEFabc |
+ {7: }{8: 13 }common line │{7: }{8: 13 }common line |
+ {7: }{8: 14 }DEF │{7: }{8: 14 }DEF |
+ {7: }{8: 15 }GHI │{7: }{8: 15 }GHI |
+ {7: }{8: 16 }something else │{7: }{8: 16 }something else |
+ {7: }{8: 17 }common line │{7: }{8: 17 }common line |
+ {7: }{8: 18 }something │{7: }{8: 18 }something |
+ {2:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
:1,12diffget |
]])
end)
@@ -1031,20 +1007,20 @@ something
feed('1<c-w>w')
feed(':1,19diffget<cr>')
screen:expect([[
- {1: }{10: 1 }^common line │{1: }{10: 1 }common line |
- {1: }{10: 2 }HIL │{1: }{10: 2 }HIL |
- {1: }{10: 3 } │{1: }{10: 3 } |
- {1: }{10: 4 }aABCabc │{1: }{10: 4 }aABCabc |
- {1: }{10: 5 }aABCabc │{1: }{10: 5 }aABCabc |
- {1: }{10: 6 }aABCabc │{1: }{10: 6 }aABCabc |
- {1: }{10: 7 }aABCabc │{1: }{10: 7 }aABCabc |
- {1: }{10: 8 }common line │{1: }{10: 8 }common line |
- {1: }{10: 9 }HIL │{1: }{10: 9 }HIL |
- {1: }{10: 10 }common line │{1: }{10: 10 }common line |
- {1: }{10: 11 }something │{1: }{10: 11 }something |
- {1: }{10: 12 } │{1: }{10: 12 } |
- {6:~ }│{6:~ }|*6
- {7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
+ {7: }{8: 1 }^common line │{7: }{8: 1 }common line |
+ {7: }{8: 2 }HIL │{7: }{8: 2 }HIL |
+ {7: }{8: 3 } │{7: }{8: 3 } |
+ {7: }{8: 4 }aABCabc │{7: }{8: 4 }aABCabc |
+ {7: }{8: 5 }aABCabc │{7: }{8: 5 }aABCabc |
+ {7: }{8: 6 }aABCabc │{7: }{8: 6 }aABCabc |
+ {7: }{8: 7 }aABCabc │{7: }{8: 7 }aABCabc |
+ {7: }{8: 8 }common line │{7: }{8: 8 }common line |
+ {7: }{8: 9 }HIL │{7: }{8: 9 }HIL |
+ {7: }{8: 10 }common line │{7: }{8: 10 }common line |
+ {7: }{8: 11 }something │{7: }{8: 11 }something |
+ {7: }{8: 12 } │{7: }{8: 12 } |
+ {1:~ }│{1:~ }|*6
+ {3:Xtest-functional-diff-screen-1.2 [+] }{2:Xtest-functional-diff-screen-1 }|
:1,19diffget |
]])
end)
@@ -1054,25 +1030,25 @@ something
feed('2<c-w>w')
feed(':7,8diffget<cr>')
screen:expect([[
- {1: }{10: 1 }common line │{1: }{10: 1 }^common line |
- {1: }{10: 2 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 3 }{8:GHI}{9: }│{1: }{10: 2 }{8:HIL}{9: }|
- {1: }{10: 4 }{4:something }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 5 } │{1: }{10: 3 } |
- {1: }{10: 6 }{9:a}{8:DEF}{9:abc }│{1: }{10: 4 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 7 }{8:xyz}{9: }│{1: }{10: 5 }{8:aABCabc}{9: }|
- {1: }{10: 8 }{8:xyz}{9: }│{1: }{10: 6 }{8:aABCabc}{9: }|
- {1: }{10: 9 }xyz │{1: }{10: 7 }xyz |
- {1: }{10: 10 }aDEFabc │{1: }{10: 8 }aDEFabc |
- {1: }{10: 11 }aDEFabc │{1: }{10: 9 }aDEFabc |
- {1: }{10: 12 }aDEFabc │{1: }{10: 10 }aDEFabc |
- {1: }{10: 13 }common line │{1: }{10: 11 }common line |
- {1: }{10: 14 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 15 }{8:GHI}{9: }│{1: }{10: 12 }{8:HIL}{9: }|
- {1: }{10: 16 }{4:something else }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 17 }common line │{1: }{10: 13 }common line |
- {1: }{10: 18 }something │{1: }{10: 14 }something |
- {3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 }common line │{7: }{8: 1 }^common line |
+ {7: }{8: 2 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 3 }{27:GHI}{4: }│{7: }{8: 2 }{27:HIL}{4: }|
+ {7: }{8: 4 }{22:something }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 5 } │{7: }{8: 3 } |
+ {7: }{8: 6 }{4:a}{27:DEF}{4:abc }│{7: }{8: 4 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 7 }{27:xyz}{4: }│{7: }{8: 5 }{27:aABCabc}{4: }|
+ {7: }{8: 8 }{27:xyz}{4: }│{7: }{8: 6 }{27:aABCabc}{4: }|
+ {7: }{8: 9 }xyz │{7: }{8: 7 }xyz |
+ {7: }{8: 10 }aDEFabc │{7: }{8: 8 }aDEFabc |
+ {7: }{8: 11 }aDEFabc │{7: }{8: 9 }aDEFabc |
+ {7: }{8: 12 }aDEFabc │{7: }{8: 10 }aDEFabc |
+ {7: }{8: 13 }common line │{7: }{8: 11 }common line |
+ {7: }{8: 14 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 15 }{27:GHI}{4: }│{7: }{8: 12 }{27:HIL}{4: }|
+ {7: }{8: 16 }{22:something else }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 17 }common line │{7: }{8: 13 }common line |
+ {7: }{8: 18 }something │{7: }{8: 14 }something |
+ {2:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
:7,8diffget |
]])
end
@@ -1083,25 +1059,25 @@ something
feed('2<c-w>w')
feed(':8,10diffget<cr>')
screen:expect([[
- {1: }{10: 1 }common line │{1: }{10: 1 }^common line |
- {1: }{10: 2 }{4:DEF }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 3 }{8:GHI}{9: }│{1: }{10: 2 }{8:HIL}{9: }|
- {1: }{10: 4 }{4:something }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 5 } │{1: }{10: 3 } |
- {1: }{10: 6 }{9:a}{8:DEF}{9:abc }│{1: }{10: 4 }{9:a}{8:ABC}{9:abc }|
- {1: }{10: 7 }{8:xyz}{9: }│{1: }{10: 5 }{8:aABCabc}{9: }|
- {1: }{10: 8 }{8:xyz}{9: }│{1: }{10: 6 }{8:aABCabc}{9: }|
- {1: }{10: 9 }{8:xyz}{9: }│{1: }{10: 7 }{8:aABCabc}{9: }|
- {1: }{10: 10 }{4:aDEFabc }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 11 }{4:aDEFabc }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 12 }{4:aDEFabc }│{1: }{10: }{2:--------------------------------------------}|
- {1: }{10: 13 }common line │{1: }{10: 8 }common line |
- {1: }{10: 14 }DEF │{1: }{10: 9 }DEF |
- {1: }{10: 15 }GHI │{1: }{10: 10 }GHI |
- {1: }{10: 16 }something else │{1: }{10: 11 }something else |
- {1: }{10: 17 }common line │{1: }{10: 12 }common line |
- {1: }{10: 18 }something │{1: }{10: 13 }something |
- {3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
+ {7: }{8: 1 }common line │{7: }{8: 1 }^common line |
+ {7: }{8: 2 }{22:DEF }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 3 }{27:GHI}{4: }│{7: }{8: 2 }{27:HIL}{4: }|
+ {7: }{8: 4 }{22:something }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 5 } │{7: }{8: 3 } |
+ {7: }{8: 6 }{4:a}{27:DEF}{4:abc }│{7: }{8: 4 }{4:a}{27:ABC}{4:abc }|
+ {7: }{8: 7 }{27:xyz}{4: }│{7: }{8: 5 }{27:aABCabc}{4: }|
+ {7: }{8: 8 }{27:xyz}{4: }│{7: }{8: 6 }{27:aABCabc}{4: }|
+ {7: }{8: 9 }{27:xyz}{4: }│{7: }{8: 7 }{27:aABCabc}{4: }|
+ {7: }{8: 10 }{22:aDEFabc }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 11 }{22:aDEFabc }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 12 }{22:aDEFabc }│{7: }{8: }{23:--------------------------------------------}|
+ {7: }{8: 13 }common line │{7: }{8: 8 }common line |
+ {7: }{8: 14 }DEF │{7: }{8: 9 }DEF |
+ {7: }{8: 15 }GHI │{7: }{8: 10 }GHI |
+ {7: }{8: 16 }something else │{7: }{8: 11 }something else |
+ {7: }{8: 17 }common line │{7: }{8: 12 }common line |
+ {7: }{8: 18 }something │{7: }{8: 13 }something |
+ {2:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 [+] }|
:8,10diffget |
]])
end
diff --git a/test/functional/ui/mode_spec.lua b/test/functional/ui/mode_spec.lua
index 8d7fae3e91..262b63977b 100644
--- a/test/functional/ui/mode_spec.lua
+++ b/test/functional/ui/mode_spec.lua
@@ -12,20 +12,13 @@ describe('ui mode_change event', function()
clear()
screen = Screen.new(25, 4)
screen:attach({ rgb = true })
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = 255 },
- [1] = { bold = true, reverse = true },
- [2] = { bold = true },
- [3] = { reverse = true },
- [4] = { background = Screen.colors.Red, foreground = Screen.colors.White }, -- ErrorMsg
- })
end)
it('works in normal mode', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -35,7 +28,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'operator',
@@ -45,7 +38,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -61,7 +54,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'operator',
@@ -71,8 +64,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
- {4:E21: Cannot make changes, 'modifiable' is off} |
+ {1:~ }|*2
+ {9:E21: Cannot make changes, 'modifiable' is off} |
]],
mode = 'normal',
}
@@ -84,7 +77,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'replace',
@@ -94,7 +87,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -106,8 +99,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
- {2:-- INSERT --} |
+ {1:~ }|*2
+ {5:-- INSERT --} |
]],
mode = 'insert',
}
@@ -116,7 +109,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
wor^d |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -133,8 +126,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
word(stuff^ |
- {0:~ }|*2
- {2:-- INSERT --} |
+ {1:~ }|*2
+ {5:-- INSERT --} |
]],
mode = 'insert',
timeout = screen_timeout,
@@ -144,8 +137,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
word^(stuff) |
- {0:~ }|*2
- {2:-- INSERT --} |
+ {1:~ }|*2
+ {5:-- INSERT --} |
]],
mode = 'showmatch',
timeout = screen_timeout,
@@ -154,8 +147,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
word(stuff)^ |
- {0:~ }|*2
- {2:-- INSERT --} |
+ {1:~ }|*2
+ {5:-- INSERT --} |
]],
mode = 'insert',
timeout = screen_timeout,
@@ -168,8 +161,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
- {2:-- REPLACE --} |
+ {1:~ }|*2
+ {5:-- REPLACE --} |
]],
mode = 'replace',
}
@@ -178,7 +171,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
wor^d |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -190,7 +183,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
|
- {0:~ }|*2
+ {1:~ }|*2
:^ |
]],
mode = 'cmdline_normal',
@@ -200,7 +193,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
|
- {0:~ }|*2
+ {1:~ }|*2
:^x |
]],
mode = 'cmdline_insert',
@@ -210,7 +203,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
|
- {0:~ }|*2
+ {1:~ }|*2
:^x |
]],
mode = 'cmdline_replace',
@@ -220,7 +213,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
|
- {0:~ }|*2
+ {1:~ }|*2
:x^ |
]],
mode = 'cmdline_normal',
@@ -230,7 +223,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -243,8 +236,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
tex^t |
- {0:~ }|*2
- {2:-- VISUAL --} |
+ {1:~ }|*2
+ {5:-- VISUAL --} |
]],
mode = 'visual',
}
@@ -253,7 +246,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
tex^t |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
@@ -264,8 +257,8 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
tex^t |
- {0:~ }|*2
- {2:-- VISUAL --} |
+ {1:~ }|*2
+ {5:-- VISUAL --} |
]],
mode = 'visual_select',
}
@@ -274,7 +267,7 @@ describe('ui mode_change event', function()
screen:expect {
grid = [[
tex^t |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
mode = 'normal',
diff --git a/test/functional/ui/multibyte_spec.lua b/test/functional/ui/multibyte_spec.lua
index c2fc763401..3149f8e8c6 100644
--- a/test/functional/ui/multibyte_spec.lua
+++ b/test/functional/ui/multibyte_spec.lua
@@ -16,15 +16,6 @@ describe('multibyte rendering', function()
clear()
screen = Screen.new(60, 6)
screen:attach({ rgb = true })
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue },
- [2] = { background = Screen.colors.WebGray },
- [3] = { background = Screen.colors.LightMagenta },
- [4] = { bold = true },
- [5] = { foreground = Screen.colors.Blue },
- [6] = { reverse = true, bold = true },
- [7] = { reverse = true },
- })
end)
it('works with composed char at start of line', function()
@@ -83,17 +74,17 @@ describe('multibyte rendering', function()
ab ^ |
-馬 |
{1:~ }|*3
- {4:-- INSERT --} |
+ {5:-- INSERT --} |
]])
-- check double-width char is temporarily hidden when overlapped
fn.complete(4, { 'xx', 'yy' })
screen:expect([[
ab xx^ |
- - {2: xx } |
- {1:~ }{3: yy }{1: }|
+ - {12: xx } |
+ {1:~ }{4: yy }{1: }|
{1:~ }|*2
- {4:-- INSERT --} |
+ {5:-- INSERT --} |
]])
-- check it is properly restored
@@ -102,7 +93,7 @@ describe('multibyte rendering', function()
ab xxz^ |
-馬 |
{1:~ }|*3
- {4:-- INSERT --} |
+ {5:-- INSERT --} |
]])
end)
@@ -129,7 +120,7 @@ describe('multibyte rendering', function()
{1:~ }│a口口口口口口口口口口口口口口口口 |
{1:~ }│aa口口口口口口口口口口口口口口口口 |
{1:~ }│aaa口口口口口口口口口口口口口口口口 |
- {6:[No Name] }{7:[No Name] [+] }|
+ {3:[No Name] }{2:[No Name] [+] }|
|
]])
end)
@@ -139,7 +130,7 @@ describe('multibyte rendering', function()
feed('$')
screen:expect {
grid = [[
- {5:<ffff>}!!^! |
+ {18:<ffff>}!!^! |
{1:~ }|*4
|
]],
@@ -285,11 +276,6 @@ describe('multibyte rendering: statusline', function()
before_each(function()
clear()
screen = Screen.new(40, 4)
- screen:set_default_attr_ids({
- [1] = { bold = true, foreground = Screen.colors.Blue1 },
- [2] = { bold = true, reverse = true },
- [3] = { background = Screen.colors.Red, foreground = Screen.colors.Gray100 },
- })
screen:attach()
command('set laststatus=2')
end)
@@ -299,7 +285,7 @@ describe('multibyte rendering: statusline', function()
screen:expect([[
^ |
{1:~ }|
- {2:你好 }|
+ {3:你好 }|
|
]])
end)
@@ -308,7 +294,7 @@ describe('multibyte rendering: statusline', function()
screen:expect([[
^ |
{1:~ }|
- {2:abc }|
+ {3:abc }|
|
]])
end)
@@ -317,7 +303,7 @@ describe('multibyte rendering: statusline', function()
screen:expect([[
^ |
{1:~ }|
- {2:<9f> }|
+ {3:<9f> }|
|
]])
end)
@@ -327,7 +313,7 @@ describe('multibyte rendering: statusline', function()
screen:expect([[
^ |
{1:~ }|
- {2:o̸⃯ᷰ⃐⃧⃝ }|
+ {3:o̸⃯ᷰ⃐⃧⃝ }|
|
]])
end)
@@ -337,7 +323,7 @@ describe('multibyte rendering: statusline', function()
screen:expect([[
^ |
{1:~ }|
- {2:<9f><1df0><20ef><0338><20d0><20e7><20dd>}|
+ {3:<9f><1df0><20ef><0338><20d0><20e7><20dd>}|
|
]])
end)
@@ -348,7 +334,7 @@ describe('multibyte rendering: statusline', function()
grid = [[
^ |
{1:~ }|
- {2: Q≡ }|
+ {3: Q≡ }|
|
]],
}
@@ -361,7 +347,7 @@ describe('multibyte rendering: statusline', function()
grid = [[
^ |
{1:~ }|
- {2:🧑�💻 }|
+ {3:🧑�💻 }|
|
]],
}
@@ -375,7 +361,7 @@ describe('multibyte rendering: statusline', function()
grid = [[
^ |
{1:~ }|
- {2:xx}{3:🧑<200d>💻}{2:yy }|
+ {3:xx}{9:🧑<200d>💻}{3:yy }|
|
]],
}
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index 42e2b4d4b5..adb1fd31f4 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -27,17 +27,13 @@ describe('screen', function()
set_session(screen_nvim)
screen = Screen.new()
screen:attach()
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = 255 },
- [1] = { bold = true, reverse = true },
- })
end)
it('default initial screen', function()
screen:expect([[
^ |
- {0:~ }|*11
- {1:[No Name] }|
+ {1:~ }|*11
+ {3:[No Name] }|
|
]])
end)
@@ -811,9 +807,6 @@ end)
it("showcmd doesn't cause empty grid_line with redrawdebug=compositor #22593", function()
clear()
local screen = Screen.new(30, 2)
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = Screen.colors.Blue },
- })
screen:attach()
command('set showcmd redrawdebug=compositor')
feed('d')
diff --git a/test/functional/ui/statuscolumn_spec.lua b/test/functional/ui/statuscolumn_spec.lua
index 73bedbd10a..289badb859 100644
--- a/test/functional/ui/statuscolumn_spec.lua
+++ b/test/functional/ui/statuscolumn_spec.lua
@@ -140,58 +140,54 @@ describe('statuscolumn', function()
.. [[%=%{&rnu&&(v:lnum%2)?'\ '.v:relnum:''}]]
.. [[%#LineNr#%{&rnu&&!(v:lnum%2)?'\ '.v:relnum:''}│]]
)
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = Screen.colors.Blue },
- [1] = { foreground = Screen.colors.Brown },
- })
screen:expect([[
- {0:4 }{1:│}aaaaa |
- {0:5 }{1:│}aaaaa |
- {0:6 }{1:│}aaaaa |
- {0:7 }{1:│}aaaaa |
- {0:8 }{1:│}^aaaaa |
- {0:9 }{1:│}aaaaa |
- {0:10}{1:│}aaaaa |
- {0:11}{1:│}aaaaa |
- {0:12}{1:│}aaaaa |
- {0:13}{1:│}aaaaa |
- {0:14}{1:│}aaaaa |
- {0:15}{1:│}aaaaa |
- {0:16}{1:│}aaaaa |
+ {1:4 }{8:│}aaaaa |
+ {1:5 }{8:│}aaaaa |
+ {1:6 }{8:│}aaaaa |
+ {1:7 }{8:│}aaaaa |
+ {1:8 }{8:│}^aaaaa |
+ {1:9 }{8:│}aaaaa |
+ {1:10}{8:│}aaaaa |
+ {1:11}{8:│}aaaaa |
+ {1:12}{8:│}aaaaa |
+ {1:13}{8:│}aaaaa |
+ {1:14}{8:│}aaaaa |
+ {1:15}{8:│}aaaaa |
+ {1:16}{8:│}aaaaa |
|
]])
command('set relativenumber')
screen:expect([[
- {0:4 }{1: 4│}aaaaa |
- {0:5 3}{1:│}aaaaa |
- {0:6 }{1: 2│}aaaaa |
- {0:7 1}{1:│}aaaaa |
- {0:8 }{1: 0│}^aaaaa |
- {0:9 1}{1:│}aaaaa |
- {0:10}{1: 2│}aaaaa |
- {0:11 3}{1:│}aaaaa |
- {0:12}{1: 4│}aaaaa |
- {0:13 5}{1:│}aaaaa |
- {0:14}{1: 6│}aaaaa |
- {0:15 7}{1:│}aaaaa |
- {0:16}{1: 8│}aaaaa |
+ {1:4 }{8: 4│}aaaaa |
+ {1:5 3}{8:│}aaaaa |
+ {1:6 }{8: 2│}aaaaa |
+ {1:7 1}{8:│}aaaaa |
+ {1:8 }{8: 0│}^aaaaa |
+ {1:9 1}{8:│}aaaaa |
+ {1:10}{8: 2│}aaaaa |
+ {1:11 3}{8:│}aaaaa |
+ {1:12}{8: 4│}aaaaa |
+ {1:13 5}{8:│}aaaaa |
+ {1:14}{8: 6│}aaaaa |
+ {1:15 7}{8:│}aaaaa |
+ {1:16}{8: 8│}aaaaa |
|
]])
command('set nonumber')
screen:expect([[
- {1:4│}aaaaa |
- {0:3}{1:│}aaaaa |
- {1:2│}aaaaa |
- {0:1}{1:│}aaaaa |
- {1:0│}^aaaaa |
- {0:1}{1:│}aaaaa |
- {1:2│}aaaaa |
- {0:3}{1:│}aaaaa |
- {1:4│}aaaaa |
- {0:5}{1:│}aaaaa |
- {1:6│}aaaaa |
- {0:7}{1:│}aaaaa |
- {1:8│}aaaaa |
+ {8:4│}aaaaa |
+ {1:3}{8:│}aaaaa |
+ {8:2│}aaaaa |
+ {1:1}{8:│}aaaaa |
+ {8:0│}^aaaaa |
+ {1:1}{8:│}aaaaa |
+ {8:2│}aaaaa |
+ {1:3}{8:│}aaaaa |
+ {8:4│}aaaaa |
+ {1:5}{8:│}aaaaa |
+ {8:6│}aaaaa |
+ {1:7}{8:│}aaaaa |
+ {8:8│}aaaaa |
|
]])
end)
@@ -532,15 +528,11 @@ describe('statuscolumn', function()
it('does not corrupt the screen with minwid sign item', function()
screen:try_resize(screen._width, 3)
- screen:set_default_attr_ids({
- [0] = { foreground = Screen.colors.Brown },
- [1] = { foreground = Screen.colors.Blue4, background = Screen.colors.Gray },
- })
command([[set stc=%6s\ %l]])
exec_lua('vim.api.nvim_buf_set_extmark(0, ns, 7, 0, {sign_text = "𒀀"})')
screen:expect([[
- {0: 𒀀 8 }^aaaaa |
- {0: }{1: }{0: 9 }aaaaa |
+ {8: 𒀀 8 }^aaaaa |
+ {8: }{7: }{8: 9 }aaaaa |
|
]])
end)
diff --git a/test/functional/ui/tabline_spec.lua b/test/functional/ui/tabline_spec.lua
index 8754a7ef9d..c7cb0af826 100644
--- a/test/functional/ui/tabline_spec.lua
+++ b/test/functional/ui/tabline_spec.lua
@@ -99,10 +99,6 @@ describe('tabline', function()
clear()
screen = Screen.new(42, 5)
screen:attach()
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
- [1] = { reverse = true }, -- TabLineFill
- })
end)
it('redraws when tabline option is set', function()
@@ -110,18 +106,18 @@ describe('tabline', function()
command('set showtabline=2')
screen:expect {
grid = [[
- {1:asdf }|
+ {2:asdf }|
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
}
command('set tabline=jkl')
screen:expect {
grid = [[
- {1:jkl }|
+ {2:jkl }|
^ |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
}
@@ -141,9 +137,9 @@ describe('tabline', function()
api.nvim_set_option_value('tabline', '%1T口口%2Ta' .. ('b'):rep(38) .. '%999Xc', {})
screen:expect {
grid = [[
- {1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
+ {2:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^1 |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
}
@@ -151,27 +147,27 @@ describe('tabline', function()
api.nvim_input_mouse('left', 'press', '', 0, 0, 1)
screen:expect {
grid = [[
- {1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
+ {2:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^2 |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
}
api.nvim_input_mouse('left', 'press', '', 0, 0, 0)
screen:expect {
grid = [[
- {1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
+ {2:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^1 |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
}
api.nvim_input_mouse('left', 'press', '', 0, 0, 39)
screen:expect {
grid = [[
- {1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
+ {2:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^2 |
- {0:~ }|*2
+ {1:~ }|*2
|
]],
}
@@ -179,7 +175,7 @@ describe('tabline', function()
screen:expect {
grid = [[
tab^1 |
- {0:~ }|*3
+ {1:~ }|*3
|
]],
}
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua
index c2a52c0f21..f84f68f9e2 100644
--- a/test/functional/ui/winbar_spec.lua
+++ b/test/functional/ui/winbar_spec.lua
@@ -525,30 +525,24 @@ describe('local winbar with tabs', function()
clear()
screen = Screen.new(60, 10)
screen:attach()
- screen:set_default_attr_ids({
- [1] = { bold = true },
- [2] = { reverse = true },
- [3] = { bold = true, foreground = Screen.colors.Blue },
- [4] = { underline = true, background = Screen.colors.LightGray },
- })
api.nvim_set_option_value('winbar', 'foo', { scope = 'local', win = 0 })
end)
it('works', function()
command('tabnew')
screen:expect([[
- {4: [No Name] }{1: [No Name] }{2: }{4:X}|
+ {24: [No Name] }{5: [No Name] }{2: }{24:X}|
^ |
- {3:~ }|*7
+ {1:~ }|*7
|
]])
command('tabnext')
screen:expect {
grid = [[
- {1: [No Name] }{4: [No Name] }{2: }{4:X}|
- {1:foo }|
+ {5: [No Name] }{24: [No Name] }{2: }{24:X}|
+ {5:foo }|
^ |
- {3:~ }|*6
+ {1:~ }|*6
|
]],
}
@@ -561,11 +555,11 @@ describe('local winbar with tabs', function()
text]]
screen:expect {
grid = [[
- {1:foo }|
+ {5:foo }|
some |
goofy |
tex^t |
- {3:~ }|*5
+ {1:~ }|*5
|
]],
}
@@ -574,9 +568,9 @@ describe('local winbar with tabs', function()
command 'tabedit'
screen:expect {
grid = [[
- {4: + [No Name] }{1: [No Name] }{2: }{4:X}|
+ {24: + [No Name] }{5: [No Name] }{2: }{24:X}|
^ |
- {3:~ }|*7
+ {1:~ }|*7
|
]],
}
@@ -584,12 +578,12 @@ describe('local winbar with tabs', function()
command 'tabprev'
screen:expect {
grid = [[
- {1: + [No Name] }{4: [No Name] }{2: }{4:X}|
- {1:foo }|
+ {5: + [No Name] }{24: [No Name] }{2: }{24:X}|
+ {5:foo }|
some |
goofy |
tex^t |
- {3:~ }|*4
+ {1:~ }|*4
|
]],
}
@@ -609,16 +603,11 @@ it('winbar works properly when redrawing is postponed #23534', function()
})
local screen = Screen.new(60, 6)
screen:attach()
- screen:set_default_attr_ids({
- [0] = { foreground = Screen.colors.Blue, bold = true },
- [1] = { bold = true },
- [2] = { bold = true, reverse = true },
- })
screen:expect([[
- {1:(winbar) }|
+ {5:(winbar) }|
^ |
- {0:~ }|*2
- {2:(statusline) }|
+ {1:~ }|*2
+ {3:(statusline) }|
|
]])
end)