aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-09 20:42:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-12-09 22:15:02 +0800
commit1037ce2e461034a20e35ad59969fd05d5ad68b91 (patch)
tree5cc490afac4607008bacf24d132015b63adfd1d0
parent5e43630a260e49ed494539d41cb832b1ee6d03c8 (diff)
downloadrneovim-1037ce2e461034a20e35ad59969fd05d5ad68b91.tar.gz
rneovim-1037ce2e461034a20e35ad59969fd05d5ad68b91.tar.bz2
rneovim-1037ce2e461034a20e35ad59969fd05d5ad68b91.zip
test: avoid repeated screen lines in expected states
This is the command invoked repeatedly to make the changes: :%s/^\(.*\)|\%(\*\(\d\+\)\)\?$\n\1|\%(\*\(\d\+\)\)\?$/\=submatch(1)..'|*'..(max([str2nr(submatch(2)),1])+max([str2nr(submatch(3)),1]))/g
-rw-r--r--test/functional/api/buffer_spec.lua70
-rw-r--r--test/functional/api/extmark_spec.lua42
-rw-r--r--test/functional/api/vim_spec.lua137
-rw-r--r--test/functional/api/window_spec.lua56
-rw-r--r--test/functional/autocmd/autocmd_spec.lua53
-rw-r--r--test/functional/autocmd/cmdline_spec.lua15
-rw-r--r--test/functional/autocmd/focus_spec.lua12
-rw-r--r--test/functional/autocmd/show_spec.lua5
-rw-r--r--test/functional/core/fileio_spec.lua9
-rw-r--r--test/functional/core/job_spec.lua13
-rw-r--r--test/functional/core/main_spec.lua14
-rw-r--r--test/functional/core/startup_spec.lua26
-rw-r--r--test/functional/editor/completion_spec.lua257
-rw-r--r--test/functional/editor/ctrl_c_spec.lua10
-rw-r--r--test/functional/editor/mark_spec.lua9
-rw-r--r--test/functional/editor/mode_insert_spec.lua15
-rw-r--r--test/functional/editor/tabpage_spec.lua10
-rw-r--r--test/functional/ex_cmds/append_spec.lua12
-rw-r--r--test/functional/ex_cmds/cmd_map_spec.lua217
-rw-r--r--test/functional/ex_cmds/debug_spec.lua31
-rw-r--r--test/functional/ex_cmds/drop_spec.lua23
-rw-r--r--test/functional/ex_cmds/map_spec.lua43
-rw-r--r--test/functional/ex_cmds/mksession_spec.lua4
-rw-r--r--test/functional/ex_cmds/quickfix_commands_spec.lua5
-rw-r--r--test/functional/ex_cmds/swapfile_preserve_recover_spec.lua34
-rw-r--r--test/functional/legacy/063_match_and_matchadd_spec.lua8
-rw-r--r--test/functional/legacy/107_adjust_window_and_contents_spec.lua10
-rw-r--r--test/functional/legacy/arglist_spec.lua5
-rw-r--r--test/functional/legacy/breakindent_spec.lua10
-rw-r--r--test/functional/legacy/cmdline_spec.lua101
-rw-r--r--test/functional/legacy/conceal_spec.lua24
-rw-r--r--test/functional/legacy/cpoptions_spec.lua10
-rw-r--r--test/functional/legacy/debugger_spec.lua18
-rw-r--r--test/functional/legacy/digraph_spec.lua15
-rw-r--r--test/functional/legacy/display_spec.lua97
-rw-r--r--test/functional/legacy/edit_spec.lua30
-rw-r--r--test/functional/legacy/ex_mode_spec.lua8
-rw-r--r--test/functional/legacy/excmd_spec.lua114
-rw-r--r--test/functional/legacy/fold_spec.lua50
-rw-r--r--test/functional/legacy/global_spec.lua5
-rw-r--r--test/functional/legacy/highlight_spec.lua5
-rw-r--r--test/functional/legacy/listchars_spec.lua40
-rw-r--r--test/functional/legacy/listlbr_spec.lua32
-rw-r--r--test/functional/legacy/match_spec.lua17
-rw-r--r--test/functional/legacy/matchparen_spec.lua8
-rw-r--r--test/functional/legacy/messages_spec.lua115
-rw-r--r--test/functional/legacy/move_spec.lua12
-rw-r--r--test/functional/legacy/normal_spec.lua15
-rw-r--r--test/functional/legacy/options_spec.lua12
-rw-r--r--test/functional/legacy/prompt_buffer_spec.lua86
-rw-r--r--test/functional/legacy/put_spec.lua3
-rw-r--r--test/functional/legacy/scroll_opt_spec.lua188
-rw-r--r--test/functional/legacy/search_spec.lua24
-rw-r--r--test/functional/legacy/search_stat_spec.lua68
-rw-r--r--test/functional/legacy/source_spec.lua5
-rw-r--r--test/functional/legacy/statusline_spec.lua21
-rw-r--r--test/functional/legacy/substitute_spec.lua5
-rw-r--r--test/functional/legacy/tabline_spec.lua16
-rw-r--r--test/functional/legacy/visual_spec.lua10
-rw-r--r--test/functional/legacy/window_cmd_spec.lua8
-rw-r--r--test/functional/lua/commands_spec.lua9
-rw-r--r--test/functional/lua/loop_spec.lua18
-rw-r--r--test/functional/lua/luaeval_spec.lua4
-rw-r--r--test/functional/lua/overrides_spec.lua88
-rw-r--r--test/functional/lua/secure_spec.lua40
-rw-r--r--test/functional/lua/thread_spec.lua36
-rw-r--r--test/functional/lua/ui_event_spec.lua12
-rw-r--r--test/functional/lua/vim_spec.lua16
-rw-r--r--test/functional/options/chars_spec.lua41
-rw-r--r--test/functional/options/cursorbind_spec.lua25
-rw-r--r--test/functional/options/defaults_spec.lua3
-rw-r--r--test/functional/options/shortmess_spec.lua28
-rw-r--r--test/functional/plugin/lsp/semantic_tokens_spec.lua175
-rw-r--r--test/functional/plugin/man_spec.lua15
-rw-r--r--test/functional/provider/clipboard_spec.lua30
-rw-r--r--test/functional/terminal/altscreen_spec.lua16
-rw-r--r--test/functional/terminal/api_spec.lua15
-rw-r--r--test/functional/terminal/buffer_spec.lua81
-rw-r--r--test/functional/terminal/channel_spec.lua18
-rw-r--r--test/functional/terminal/cursor_spec.lua180
-rw-r--r--test/functional/terminal/ex_terminal_spec.lua6
-rw-r--r--test/functional/terminal/highlight_spec.lua30
-rw-r--r--test/functional/terminal/scrollback_spec.lua11
-rw-r--r--test/functional/terminal/tui_spec.lua414
-rw-r--r--test/functional/terminal/window_spec.lua52
-rw-r--r--test/functional/terminal/window_split_tab_spec.lua19
-rw-r--r--test/functional/treesitter/fold_spec.lua52
-rw-r--r--test/functional/treesitter/highlight_spec.lua117
-rw-r--r--test/functional/ui/bufhl_spec.lua255
-rw-r--r--test/functional/ui/cmdline_highlight_spec.lua298
-rw-r--r--test/functional/ui/cmdline_spec.lua408
-rw-r--r--test/functional/ui/cursor_spec.lua8
-rw-r--r--test/functional/ui/decorations_spec.lua441
-rw-r--r--test/functional/ui/diff_spec.lua406
-rw-r--r--test/functional/ui/embed_spec.lua35
-rw-r--r--test/functional/ui/float_spec.lua3588
-rw-r--r--test/functional/ui/fold_spec.lua1170
-rw-r--r--test/functional/ui/highlight_spec.lua507
-rw-r--r--test/functional/ui/hlstate_spec.lua78
-rw-r--r--test/functional/ui/inccommand_spec.lua615
-rw-r--r--test/functional/ui/inccommand_user_spec.lua100
-rw-r--r--test/functional/ui/input_spec.lua44
-rw-r--r--test/functional/ui/linematch_spec.lua88
-rw-r--r--test/functional/ui/messages_spec.lua561
-rw-r--r--test/functional/ui/mode_spec.lua69
-rw-r--r--test/functional/ui/mouse_spec.lua262
-rw-r--r--test/functional/ui/multibyte_spec.lua67
-rw-r--r--test/functional/ui/multigrid_spec.lua2411
-rw-r--r--test/functional/ui/output_spec.lua14
-rw-r--r--test/functional/ui/popupmenu_spec.lua1498
-rw-r--r--test/functional/ui/quickfix_spec.lua4
-rw-r--r--test/functional/ui/screen_basic_spec.lua408
-rw-r--r--test/functional/ui/searchhl_spec.lua173
-rw-r--r--test/functional/ui/sign_spec.lua306
-rw-r--r--test/functional/ui/spell_spec.lua99
-rw-r--r--test/functional/ui/statuscolumn_spec.lua31
-rw-r--r--test/functional/ui/statusline_spec.lua185
-rw-r--r--test/functional/ui/syntax_conceal_spec.lua464
-rw-r--r--test/functional/ui/tabline_spec.lua38
-rw-r--r--test/functional/ui/wildmode_spec.lua169
-rw-r--r--test/functional/ui/winbar_spec.lua228
-rw-r--r--test/functional/vimscript/api_functions_spec.lua5
-rw-r--r--test/functional/vimscript/execute_spec.lua35
-rw-r--r--test/functional/vimscript/input_spec.lua96
-rw-r--r--test/functional/vimscript/match_functions_spec.lua4
-rw-r--r--test/functional/vimscript/system_spec.lua104
-rw-r--r--test/functional/vimscript/timer_spec.lua15
127 files changed, 3495 insertions, 15660 deletions
diff --git a/test/functional/api/buffer_spec.lua b/test/functional/api/buffer_spec.lua
index 6ed9aa574a..db910545ef 100644
--- a/test/functional/api/buffer_spec.lua
+++ b/test/functional/api/buffer_spec.lua
@@ -170,10 +170,7 @@ describe('api/buf', function()
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
www |
xxx |
@@ -186,10 +183,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 0, 2, true, {"aaabbb"})
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
www |
xxx |
@@ -203,10 +197,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 3, 4, true, {"wwweeee"})
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
wwweeee |
xxx |
@@ -220,10 +211,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 3, 3, true, {"mmm"})
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
wwweeee |
xxx |
@@ -236,10 +224,7 @@ describe('api/buf', function()
meths.win_set_cursor(0, {7, 0})
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
wwweeee |
xxx |
@@ -252,10 +237,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 4, 4, true, {"mmmeeeee"})
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
mmmeeeee |
wwweeee |
@@ -275,10 +257,7 @@ describe('api/buf', function()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:[No Name] }|
www |
xxx |
@@ -291,10 +270,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 0, 2, true, {"aaabbb"})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:[No Name] }|
www |
xxx |
@@ -308,10 +284,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 3, 4, true, {"wwweeee"})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:[No Name] }|
wwweeee |
xxx |
@@ -325,10 +298,7 @@ describe('api/buf', function()
meths.buf_set_lines(buf, 3, 3, true, {"mmm"})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:[No Name] }|
mmm |
wwweeee |
@@ -1690,10 +1660,7 @@ describe('api/buf', function()
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
www |
xxx |
@@ -1706,10 +1673,7 @@ describe('api/buf', function()
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:[No Name] }|
www |
xxx |
@@ -1729,10 +1693,7 @@ describe('api/buf', function()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:[No Name] }|
www |
xxx |
@@ -1745,10 +1706,7 @@ describe('api/buf', function()
meths.buf_set_text(buf, 0,3, 1,0, {"X"})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:[No Name] }|
www |
xxx |
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua
index 8bfb0effba..facabee7a4 100644
--- a/test/functional/api/extmark_spec.lua
+++ b/test/functional/api/extmark_spec.lua
@@ -435,14 +435,7 @@ describe('API/extmarks', function()
-- This shouldn't seg fault
screen:expect([[
12345^ 1 |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*8
|
]])
end)
@@ -495,14 +488,7 @@ describe('API/extmarks', function()
insert('abc')
screen:expect([[
ab^c12345 |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*8
|
]])
local rv = get_extmark_by_id(ns, marks[1])
@@ -1635,11 +1621,8 @@ describe('API/extmarks', function()
command('d2')
screen:expect([[
S2^aaa bbb ccc |
- aaa bbb ccc |
- aaa bbb ccc |
- aaa bbb ccc |
- |
- |
+ aaa bbb ccc |*3
+ |*2
]])
-- mark is restored with undo_restore == true
command('silent undo')
@@ -1647,8 +1630,7 @@ describe('API/extmarks', function()
S1 ^aaa bbb ccc |
S1S2aaa bbb ccc |
S2 aaa bbb ccc |
- aaa bbb ccc |
- aaa bbb ccc |
+ aaa bbb ccc |*2
|
]])
-- mark is deleted with undo_restore == false
@@ -1923,12 +1905,9 @@ describe('API/win_extmark', function()
screen:expect({
grid = [[
## grid 1
- [4:--------------------]|
- [4:--------------------]|
- [4:--------------------]|
+ [4:--------------------]|*3
[No Name] [+] |
- [2:--------------------]|
- [2:--------------------]|
+ [2:--------------------]|*2
[No Name] [+] |
[3:--------------------]|
## grid 2
@@ -1959,12 +1938,9 @@ describe('API/win_extmark', function()
screen:expect({
grid = [[
## grid 1
- [4:--------------------]|
- [4:--------------------]|
- [4:--------------------]|
+ [4:--------------------]|*3
[No Name] [+] |
- [2:--------------------]|
- [2:--------------------]|
+ [2:--------------------]|*2
[No Name] [+] |
[3:--------------------]|
## grid 2
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 7a3116cba5..3d3b478d66 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -285,12 +285,7 @@ describe('API', function()
meths.exec2("echo 'hello'", { output = false })
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
hello |
]]}
end)
@@ -304,10 +299,7 @@ describe('API', function()
meths.exec2("echo 'hello'", { output = true })
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
exec([[
@@ -318,10 +310,7 @@ describe('API', function()
feed([[:echon 1 | call Print() | echon 5<CR>]])
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
15 |
]]}
end)
@@ -1140,8 +1129,7 @@ describe('API', function()
nvim('paste', '', true, 3)
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
:Foo^ |
]])
end)
@@ -1152,8 +1140,7 @@ describe('API', function()
nvim('paste', 'normal! \023\022\006\027', true, -1)
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
:normal! ^W^V^F^[^ |
]])
end)
@@ -2106,9 +2093,7 @@ describe('API', function()
feed([[:call nvim_out_write("\na\n")<CR>]])
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2: }|
|
a |
@@ -2118,8 +2103,7 @@ describe('API', function()
feed([[:call nvim_out_write("b\n\nc\n")<CR>]])
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2: }|
b |
|
@@ -2132,9 +2116,7 @@ describe('API', function()
feed([[:lua vim.api.nvim_out_write('aaa\0bbb\0\0ccc\nddd\0\0\0eee\n')<CR>]])
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2: }|
aaa{3:^@}bbb{3:^@^@}ccc |
ddd{3:^@^@^@}eee |
@@ -2161,12 +2143,7 @@ describe('API', function()
nvim_async('err_write', 'has bork\n')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{1:has bork} |
]])
end)
@@ -2175,9 +2152,7 @@ describe('API', function()
nvim_async('err_write', 'something happened\nvery bad\n')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3: }|
{1:something happened} |
{1:very bad} |
@@ -2205,12 +2180,7 @@ describe('API', function()
nvim_async('err_write', 'fail\n')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{1:very fail} |
]])
helpers.poke_eventloop()
@@ -2219,9 +2189,7 @@ describe('API', function()
nvim_async('err_write', 'more fail\ntoo fail\n')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3: }|
{1:more fail} |
{1:too fail} |
@@ -2234,9 +2202,7 @@ describe('API', function()
nvim_async('err_write', 'aaa\0bbb\0\0ccc\nddd\0\0\0eee\n')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3: }|
{1:aaa^@bbb^@^@ccc} |
{1:ddd^@^@^@eee} |
@@ -2274,12 +2240,7 @@ describe('API', function()
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]])
end)
@@ -2859,8 +2820,7 @@ describe('API', function()
meths.set_current_buf(2)
screen:expect([[
^some text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]], {
[1] = {bold = true, foreground = Screen.colors.Blue1},
@@ -2937,8 +2897,7 @@ describe('API', function()
meths.set_current_buf(edited_buf)
screen:expect([[
^some text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
eq('nofile', meths.get_option_value('buftype', {buf=edited_buf}))
@@ -2950,8 +2909,7 @@ describe('API', function()
command('bwipe')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end)
@@ -3229,12 +3187,7 @@ describe('API', function()
feed(':call nvim_echo([["msg"]], v:false, {})<CR>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
msg |
]]}
end)
@@ -3243,12 +3196,7 @@ describe('API', function()
nvim_async("echo", {{"msg_a"}, {"msg_b", "Statement"}, {"msg_c", "Special"}}, true, {})
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
msg_a{3:msg_b}{4:msg_c} |
]]}
end)
@@ -3257,9 +3205,7 @@ describe('API', function()
nvim_async("echo", {{"msg_a\nmsg_a", "Statement"}, {"msg_b", "Special"}}, true, {})
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2: }|
{3:msg_a} |
{3:msg_a}{4:msg_b} |
@@ -3338,8 +3284,7 @@ describe('API', function()
{0:~}{3:Press ENTER or type command to continue}{1: }{0: }|
{0:~}{4:term://~/config2/docs/pres//32693:vim --clean +smile 29,39 All}{0: }|
{0:~}{1::call nvim__screenshot("smile2.cat") }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end)
@@ -3367,13 +3312,8 @@ describe('API', function()
screen:expect{grid=[[
|
{0:~}{1:^ }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~}{1: }{0: }|*4
+ {0:~ }|*3
|
]]}
@@ -3381,13 +3321,8 @@ describe('API', function()
screen:expect{grid=[[
|
{0:~}{7: }{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~}{1: }{0: }|*4
+ {0:~ }|*3
{6:-- TERMINAL --} |
]]}
@@ -3400,13 +3335,8 @@ describe('API', function()
screen:expect{grid=[[
|
{0:~}{1:herrejösses!}{7: }{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~}{1: }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~}{1: }{0: }|*4
+ {0:~ }|*3
{6:-- TERMINAL --} |
]]}
eq('ba\024blaherrejösses!', exec_lua [[ return stream ]])
@@ -4159,8 +4089,7 @@ describe('API', function()
screen:expect([[
foo |
bar |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
Entering Ex mode. Type "visual" to go to Normal mode. |
:1^ |
@@ -4518,10 +4447,7 @@ describe('API', function()
meths.cmd({cmd = 'echo', args = {[['hello']]}}, {output = true})
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
exec([[
@@ -4532,10 +4458,7 @@ describe('API', function()
feed([[:echon 1 | call Print() | echon 5<CR>]])
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
15 |
]]}
end)
diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua
index 6737c2d15b..67284c01e0 100644
--- a/test/functional/api/window_spec.lua
+++ b/test/functional/api/window_spec.lua
@@ -96,14 +96,7 @@ describe('API/win', function()
screen:expect{grid=[[
^prologue |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*8
]]}
-- cursor position is at beginning
eq({1, 0}, window('get_cursor', win))
@@ -111,13 +104,7 @@ describe('API/win', function()
-- move cursor to end
window('set_cursor', win, {101, 0})
screen:expect{grid=[[
- |
- |
- |
- |
- |
- |
- |
+ |*7
^epilogue |
|
]]}
@@ -126,14 +113,7 @@ describe('API/win', function()
window('set_cursor', win, {1, 0})
screen:expect{grid=[[
^prologue |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*8
]]}
-- move focus to new window
@@ -144,12 +124,10 @@ describe('API/win', function()
eq({1, 0}, window('get_cursor', win))
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
prologue |
- |
- |
+ |*2
{3:[No Name] [+] }|
|
]]}
@@ -158,11 +136,9 @@ describe('API/win', function()
window('set_cursor', win, {101, 0})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
- |
- |
+ |*2
epilogue |
{3:[No Name] [+] }|
|
@@ -172,12 +148,10 @@ describe('API/win', function()
window('set_cursor', win, {1, 0})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
prologue |
- |
- |
+ |*2
{3:[No Name] [+] }|
|
]]}
@@ -232,8 +206,7 @@ describe('API/win', function()
bbb │bbb |
ccc │ccc |
{2:dd^d }│{2:ddd }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{3:[No Name] [+] 4,3 All }{4:[No Name] [+] 4,3 All}|
|
]])
@@ -243,8 +216,7 @@ describe('API/win', function()
bbb │bbb |
ccc │ccc |
{2:dd^d }│ddd |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{3:[No Name] [+] 4,3 All }{4:[No Name] [+] 1,1 All}|
|
]])
@@ -272,8 +244,7 @@ describe('API/win', function()
bb{2:b} │bb{2:b} |
cc{2:c} │cc{2:c} |
dd^d │ddd |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{3:[No Name] [+] }{4:[No Name] [+] }|
|
]])
@@ -283,8 +254,7 @@ describe('API/win', function()
bb{2:b} │bbb |
cc{2:c} │{2:c}cc |
dd^d │{2:d}dd |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{3:[No Name] [+] }{4:[No Name] [+] }|
|
]])
diff --git a/test/functional/autocmd/autocmd_spec.lua b/test/functional/autocmd/autocmd_spec.lua
index 63a487c8bc..b9ece82420 100644
--- a/test/functional/autocmd/autocmd_spec.lua
+++ b/test/functional/autocmd/autocmd_spec.lua
@@ -272,42 +272,22 @@ describe('autocmd', function()
]])
screen:expect([[
^bb |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]])
feed(":enew | doautoall User<cr>")
screen:expect([[
{2:bb }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {3:~ }|*4
+ {1:~ }|*4
^:enew | doautoall User |
]])
feed('<cr>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
13 |
]])
eq(7, eval('g:test'))
@@ -323,28 +303,15 @@ describe('autocmd', function()
feed(":doautoall User<cr>")
screen:expect([[
{2:bb }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {3:~ }|*4
+ {1:~ }|*4
^:doautoall User |
]])
feed('<cr>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
13 |
]])
-- win vars in aucmd_win should have been reset
@@ -373,11 +340,7 @@ describe('autocmd', function()
]]
screen:expect [[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{3:[No Name] }|
|
{2:[No Name] }|
diff --git a/test/functional/autocmd/cmdline_spec.lua b/test/functional/autocmd/cmdline_spec.lua
index 82fb9b9444..577ee53c9d 100644
--- a/test/functional/autocmd/cmdline_spec.lua
+++ b/test/functional/autocmd/cmdline_spec.lua
@@ -68,9 +68,7 @@ describe('cmdline autocommands', function()
feed(':')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4: }|
: |
{2:CmdlineEnter Autocommands for "*": Vim(echoerr):FAIL} |
@@ -94,11 +92,7 @@ describe('cmdline autocommands', function()
screen:expect([[
|
^lorem ipsum |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
@@ -160,10 +154,7 @@ describe('cmdline autocommands', function()
|
lorem ipsum |
^lorem ipsum. |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)
diff --git a/test/functional/autocmd/focus_spec.lua b/test/functional/autocmd/focus_spec.lua
index 204bfcaa12..6a5cdbb96e 100644
--- a/test/functional/autocmd/focus_spec.lua
+++ b/test/functional/autocmd/focus_spec.lua
@@ -40,9 +40,7 @@ describe('autoread TUI FocusGained/FocusLost', function()
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -50,9 +48,7 @@ describe('autoread TUI FocusGained/FocusLost', function()
feed_command('edit '..path)
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:xtest-foo }|
:edit xtest-foo |
{3:-- TERMINAL --} |
@@ -61,9 +57,7 @@ describe('autoread TUI FocusGained/FocusLost', function()
feed_data('\027[O')
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:xtest-foo }|
:edit xtest-foo |
{3:-- TERMINAL --} |
diff --git a/test/functional/autocmd/show_spec.lua b/test/functional/autocmd/show_spec.lua
index 9e0a5b819a..437b664bf5 100644
--- a/test/functional/autocmd/show_spec.lua
+++ b/test/functional/autocmd/show_spec.lua
@@ -79,10 +79,7 @@ describe(":autocmd", function()
feed('q')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua
index 456650be6a..5ae468e560 100644
--- a/test/functional/core/fileio_spec.lua
+++ b/test/functional/core/fileio_spec.lua
@@ -271,8 +271,7 @@ describe('fileio', function()
command("e Xtest-overwrite-forced")
screen:expect([[
^foobar |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
"Xtest-overwrite-forced" [noeol] 1L, 6B |
]])
@@ -296,16 +295,14 @@ describe('fileio', function()
feed("<cr>")
screen:expect([[
^foobar |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
-- Use a screen test because the warning does not set v:errmsg.
command("w!")
screen:expect([[
^foobar |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
<erwrite-forced" [noeol] 1L, 6B written |
]])
end)
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index d2ea0b7441..6d021fb73f 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -894,8 +894,7 @@ describe('jobs', function()
feed_command('call PrintAndWait()')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
aaa |
bbb |
@@ -1151,10 +1150,7 @@ describe("pty process teardown", function()
screen:attach()
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
end)
@@ -1173,10 +1169,7 @@ describe("pty process teardown", function()
screen:expect([[
^ |
[Process exited 0] |
- |
- |
- |
- |
+ |*4
]])
end)
end)
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua
index 37d659739c..723bcbe153 100644
--- a/test/functional/core/main_spec.lua
+++ b/test/functional/core/main_spec.lua
@@ -73,10 +73,7 @@ describe('command-line option', function()
})
screen:expect([[
{1:^ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*4
{3:[No Name] 0,0-1 All}|
{1: }|
|
@@ -89,11 +86,7 @@ describe('command-line option', function()
screen:expect([[
|
[Process exited 1] |
- |
- |
- |
- |
- |
+ |*5
-- TERMINAL -- |
]])
--[=[ Example of incorrect output:
@@ -104,8 +97,7 @@ describe('command-line option', function()
LENO' failed. |
|
[Process exited 6] |
- |
- |
+ |*2
]])
]=]
end)
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 54259d2f5a..44e71c4946 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -49,8 +49,7 @@ describe('startup', function()
funcs.termopen({ nvim_prog, '-u', 'NONE', '--server', eval('v:servername'), '--remote-ui' })
screen:expect([[
^Cannot attach UI of :terminal child to its parent. (Unset $NVIM to skip this check) |
- |
- |
+ |*2
]])
end)
@@ -92,12 +91,9 @@ describe('startup', function()
funcs.chansend(id, 'cont\n')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[No Name] |
- |
- |
+ |*2
]])
end)
end)
@@ -497,11 +493,9 @@ describe('startup', function()
funcs.chansend(id, '\n')
screen:expect([[
^ |
- ~ |
- ~ |
+ ~ |*2
[No Name] |
- |
- |
+ |*2
]])
end)
@@ -907,10 +901,7 @@ describe('user config init', function()
feed('ia')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
[No Name] 0,0-1 All|
|
-- TERMINAL -- |
@@ -918,10 +909,7 @@ describe('user config init', function()
feed(':echo g:exrc_file<CR>')
screen:expect(string.format([[
|
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
[No Name] 0,0-1 All|
%s%s|
-- TERMINAL -- |
diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua
index 84af90a298..504943e3cc 100644
--- a/test/functional/editor/completion_spec.lua
+++ b/test/functional/editor/completion_spec.lua
@@ -41,22 +41,14 @@ describe('completion', function()
screen:expect([[
foo |
foo^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- Keyword Local completion (^N^P) The only match} |
]])
feed('<C-e>')
screen:expect([[
foo |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
feed('<ESC>')
@@ -112,10 +104,7 @@ describe('completion', function()
foo^ |
{2:bar foobaz baz }{0: }|
{1:abbr kind menu }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- Omni completion (^O^N^P) }{4:match 1 of 2} |
]])
eq({word = 'foo', abbr = 'bar', menu = 'baz',
@@ -140,11 +129,7 @@ describe('completion', function()
screen:expect([[
foo |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
feed('<C-x>')
@@ -152,11 +137,7 @@ describe('completion', function()
screen:expect([[
foo |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)} |
]])
feed('<C-n>')
@@ -164,10 +145,7 @@ describe('completion', function()
foo |
foo^ |
{2:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- Keyword Local completion (^N^P) The only match} |
]])
feed('bar<ESC>')
@@ -178,9 +156,7 @@ describe('completion', function()
foobar |
foo^ |
{2:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- INSERT --} |
]])
eq('foo', eval('getline(3)'))
@@ -192,34 +168,24 @@ describe('completion', function()
foo |
^ |
{2:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- Keyword Local completion (^N^P) The only match} |
]])
feed('<C-y>')
screen:expect([[
foo |
foo^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
feed('<ESC>')
eq('foo', eval('getline(2)'))
feed('o<C-r>=TestComplete()<CR>')
screen:expect([[
- foo |
- foo |
+ foo |*2
^ |
{2:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- INSERT --} |
]])
feed('<C-y><ESC>')
@@ -232,21 +198,14 @@ describe('completion', function()
foo |
^ |
{1:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- Keyword Local completion (^N^P) }{5:Back at original} |
]])
feed('b')
screen:expect([[
foo |
b^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- Keyword Local completion (^N^P) }{5:Back at original} |
]])
feed('ar<ESC>')
@@ -257,9 +216,7 @@ describe('completion', function()
bar |
^ |
{1:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- INSERT --} |
]])
feed('bar<ESC>')
@@ -272,21 +229,14 @@ describe('completion', function()
foo |
^ |
{1:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- Keyword Local completion (^N^P) }{5:Back at original} |
]])
feed('<ESC>')
screen:expect([[
foo |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
eq('', eval('getline(2)'))
@@ -296,9 +246,7 @@ describe('completion', function()
|
^ |
{1:foo }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- INSERT --} |
]])
feed('<ESC>')
@@ -306,10 +254,7 @@ describe('completion', function()
foo |
|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
eq('', eval('getline(3)'))
@@ -438,33 +383,20 @@ describe('completion', function()
screen:expect([[
ug^ |
{1:August }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- User defined completion (^U^N^P) }{5:Back at original} |
]])
feed('<Down>')
screen:expect([[
ug^ |
{2:August }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- User defined completion (^U^N^P) The only match} |
]])
feed('<C-y>')
screen:expect([[
August^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{3:-- INSERT --} |
]])
expect('August')
@@ -476,10 +408,7 @@ describe('completion', function()
|
Ja^ |
{1:January }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- User defined completion (^U^N^P) }{5:Back at original} |
]])
feed('<BS>')
@@ -489,8 +418,7 @@ describe('completion', function()
{1:January }{0: }|
{1:June }{0: }|
{1:July }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- User defined completion (^U^N^P) }{5:Back at original} |
]])
feed('<C-n>')
@@ -500,8 +428,7 @@ describe('completion', function()
{2:January }{0: }|
{1:June }{0: }|
{1:July }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- User defined completion (^U^N^P) }{4:match 1 of 3} |
]])
feed('<C-n>')
@@ -511,19 +438,14 @@ describe('completion', function()
{1:January }{0: }|
{2:June }{0: }|
{1:July }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- User defined completion (^U^N^P) }{4:match 2 of 3} |
]])
feed('<Esc>')
screen:expect([[
|
Jun^e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
feed('.')
@@ -531,10 +453,7 @@ describe('completion', function()
|
June |
Jun^e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
expect([[
@@ -705,12 +624,7 @@ describe('completion', function()
feed('<cr>')
screen:expect([[
96^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{3:-- INSERT --} |
]])
end)
@@ -748,10 +662,7 @@ describe('completion', function()
inc uninc indent unindent |
ind^ |
{2:indent }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- Keyword Local completion (^N^P) }{4:match 1 of 2} |
]])
@@ -760,11 +671,7 @@ describe('completion', function()
screen:expect([[
inc uninc indent unindent |
indent^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
-- Indents when completion is exited using ESC.
@@ -773,10 +680,7 @@ describe('completion', function()
inc uninc indent unindent |
indent |
in^d |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
-- Works for unindenting too.
@@ -789,8 +693,7 @@ describe('completion', function()
ind |
unind^ |
{0:~ }{2: unindent }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- Keyword Local completion (^N^P) }{4:match 1 of 2} |
]])
-- Works when going back and forth.
@@ -801,8 +704,7 @@ describe('completion', function()
ind |
uninc^ |
{0:~ }{2: uninc }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- Keyword Local completion (^N^P) }{4:match 1 of 2} |
]])
feed("<BS>d")
@@ -812,8 +714,7 @@ describe('completion', function()
ind |
unind^ |
{0:~ }{2: unindent }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- Keyword Local completion (^N^P) }{4:match 1 of 2} |
]])
feed("<C-N><C-N><C-Y><Esc>")
@@ -822,9 +723,7 @@ describe('completion', function()
indent |
ind |
uninden^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -835,22 +734,14 @@ describe('completion', function()
screen:expect([[
^foo |
bar |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
feed('A<C-x><C-l>')
screen:expect([[
foo^ |
bar |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- Whole line completion (^L^N^P) }{7:Pattern not found} |
]])
eq(-1, eval('foldclosed(1)'))
@@ -865,9 +756,7 @@ describe('completion', function()
fooegg^ |
{1:foobar }{0: }|
{2:fooegg }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- Keyword completion (^N^P) }{4:match 1 of 2} |
]])
@@ -878,9 +767,7 @@ describe('completion', function()
fooegg^ |
{1:foobar }{0: }|
{2:fooegg }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- Keyword completion (^N^P) }{4:match 1 of 2} |
]], unchanged=true}
@@ -891,9 +778,7 @@ describe('completion', function()
foobar^ |
{2:foobar }{0: }|
{1:fooegg }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- Keyword completion (^N^P) }{4:match 2 of 2} |
]])
end)
@@ -904,12 +789,7 @@ describe('completion', function()
feed(':lua CURRENT_TESTING_<TAB>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
:lua CURRENT_TESTING_VAR^ |
]]}
end)
@@ -920,11 +800,7 @@ describe('completion', function()
feed(':lua CURRENT_TESTING_<TAB>')
screen:expect{ grid = [[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{10:CURRENT_TESTING_BAR}{9: CURRENT_TESTING_FOO }|
:lua CURRENT_TESTING_BAR^ |
]], unchanged = true }
@@ -958,9 +834,7 @@ describe('completion', function()
|
{8:[No Name] }|
{0::}foo faa fee f^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{9:[Command Line] }|
{3:-- INSERT --} |
]] )
@@ -980,9 +854,7 @@ describe('completion', function()
|
{8:[No Name] }|
{0::}foo faa fee foo |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{9:[Command Line] }|
:foo faa fee foo^ |
]])
@@ -1015,11 +887,7 @@ describe('completion', function()
screen:expect([[
^ |
{1:1 3 2 }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
end)
@@ -1062,9 +930,7 @@ describe('completion', function()
bar |
foobar |
f^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- Keyword completion (^N^P) }{5:Back at original} |
]], popupmenu = {
anchor = { 1, 3, 0 },
@@ -1081,9 +947,7 @@ describe('completion', function()
bar |
foobar |
foob^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- Keyword completion (^N^P) }{5:Back at original} |
]], popupmenu = {
anchor = { 1, 3, 0 },
@@ -1175,12 +1039,7 @@ describe('completion', function()
{2:hello }{0: }|
{1:hullo }{0: }|
{1:heeee }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{3:-- }{4:match 1 of 3} |
]])
command([[call timer_start(100, { -> execute('stopinsert') })]])
@@ -1191,15 +1050,7 @@ describe('completion', function()
hullo |
heee^e |
hello |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
end)
@@ -1239,9 +1090,7 @@ describe('completion', function()
{1:bar }{0: }|
{1:foa }{0: }|
{1:.hidden }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- }{4:match 1 of 4} |
]]}
feed('<Esc>ccf<C-n>')
@@ -1249,11 +1098,7 @@ describe('completion', function()
foo^ |
{2:foo }{0: }|
{1:foa }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- }{4:match 1 of 2} |
]]}
end)
diff --git a/test/functional/editor/ctrl_c_spec.lua b/test/functional/editor/ctrl_c_spec.lua
index 4548e1aa34..c399a35462 100644
--- a/test/functional/editor/ctrl_c_spec.lua
+++ b/test/functional/editor/ctrl_c_spec.lua
@@ -64,10 +64,7 @@ describe("CTRL-C (mapped)", function()
feed('i')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
-- INSERT -- |
]])
end)
@@ -82,10 +79,7 @@ describe("CTRL-C (mapped)", function()
feed('i')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
-- INSERT -- |
]])
end)
diff --git a/test/functional/editor/mark_spec.lua b/test/functional/editor/mark_spec.lua
index e669d7f2bb..7f7d62a90a 100644
--- a/test/functional/editor/mark_spec.lua
+++ b/test/functional/editor/mark_spec.lua
@@ -419,9 +419,7 @@ describe('named marks view', function()
feed("<C-w>p'a")
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
[No Name] |
6 line |
^7 line |
@@ -454,10 +452,7 @@ describe('named marks view', function()
command('bwipe!')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
command('rshada!')
diff --git a/test/functional/editor/mode_insert_spec.lua b/test/functional/editor/mode_insert_spec.lua
index 37651164f5..463a6fa9ca 100644
--- a/test/functional/editor/mode_insert_spec.lua
+++ b/test/functional/editor/mode_insert_spec.lua
@@ -65,19 +65,13 @@ describe('insert-mode', function()
feed('i<C-R>')
screen:expect([[
{1:^"} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- INSERT --} |
]])
feed('={}')
screen:expect([[
{1:"} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
={2:{}}^ |
]])
feed('<CR>')
@@ -92,10 +86,7 @@ describe('insert-mode', function()
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- INSERT --} |
]])
end)
diff --git a/test/functional/editor/tabpage_spec.lua b/test/functional/editor/tabpage_spec.lua
index a7f629a76b..263b753a16 100644
--- a/test/functional/editor/tabpage_spec.lua
+++ b/test/functional/editor/tabpage_spec.lua
@@ -116,10 +116,7 @@ describe('tabpage', function()
screen:expect([[
{4: [No Name] }{3: [No Name] }{2: }{4:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{1:[No Name] }|
"[No Name]" --No lines in buffer-- |
]])
@@ -127,10 +124,7 @@ describe('tabpage', function()
screen:expect([[
{4: [No Name] }{3: }{5:2}{3: [No Name] }{2: }{4:X}|
^ │ |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*4
{1:[No Name] }|
"[No Name]" --No lines in buffer-- |
]])
diff --git a/test/functional/ex_cmds/append_spec.lua b/test/functional/ex_cmds/append_spec.lua
index 4134eed87e..9f3aa2d315 100644
--- a/test/functional/ex_cmds/append_spec.lua
+++ b/test/functional/ex_cmds/append_spec.lua
@@ -78,11 +78,7 @@ describe('the first line is redrawn correctly after inserting text in an empty b
screen:expect([[
aaaaa |
^bbbbb |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end)
@@ -96,11 +92,7 @@ describe('the first line is redrawn correctly after inserting text in an empty b
screen:expect([[
aaaaa |
^bbbbb |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end)
diff --git a/test/functional/ex_cmds/cmd_map_spec.lua b/test/functional/ex_cmds/cmd_map_spec.lua
index 2a2628350d..306cba85d5 100644
--- a/test/functional/ex_cmds/cmd_map_spec.lua
+++ b/test/functional/ex_cmds/cmd_map_spec.lua
@@ -69,11 +69,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
^some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{6:<F3>} {6:*} {6:<Cmd>}let m = mode(1){6:<CR>} |
]])
end)
@@ -85,11 +81,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
^some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:E1136: <Cmd> mapping must end with <CR> before second <Cmd>} |
]])
@@ -98,11 +90,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
^some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:E1255: <Cmd> mapping must end with <CR>} |
]])
eq(0, eval('x'))
@@ -114,11 +102,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
^of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
@@ -127,11 +111,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of ^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end)
@@ -247,11 +227,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
so{5:me short lines} |
{5:of }^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- VISUAL --} |
]])
feed('<esc>')
@@ -269,11 +245,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of alpha^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT --} |
]])
-- feedkeys were not executed immediately
@@ -285,11 +257,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of alphabet^atest text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
-- feedkeys(..., 'x') was executed immediately, but insert mode gets aborted
@@ -310,9 +278,7 @@ describe('mappings with <Cmd>', function()
aa |
xx |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:normal ,x |
]])
@@ -325,9 +291,7 @@ describe('mappings with <Cmd>', function()
aa |
xx |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:normal ,x |
]])
@@ -336,11 +300,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
^ |
0 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
--No lines in buffer-- |
]])
@@ -364,11 +324,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some short }^lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- VISUAL --} |
]])
eq('v', funcs.mode(1))
@@ -383,8 +339,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some }short lines |
of test text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7: }|
{2:Error detected while processing :} |
{2:E605: Exception not caught: very error} |
@@ -396,11 +351,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some }^short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- VISUAL --} |
]])
eq('v', funcs.mode(1))
@@ -408,11 +359,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
so{5:me short lines} |
{5:of }^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- VISUAL --} |
]])
eq('v', funcs.mode(1))
@@ -422,11 +369,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
so{5:me short lines} |
{5:of }^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- (insert) VISUAL --} |
]])
eq('v', eval('mode(1)'))
@@ -442,11 +385,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some short }^lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- SELECT --} |
]])
eq('s', funcs.mode(1))
@@ -466,8 +405,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some }short lines |
of test text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7: }|
{2:Error detected while processing :} |
{2:E605: Exception not caught: very error} |
@@ -479,11 +417,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some }^short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- VISUAL --} |
]])
-- quirk: restoration of select mode is not performed
@@ -494,8 +428,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some }short lines |
of test text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7: }|
{2:Error detected while processing :} |
{2:E605: Exception not caught: very error} |
@@ -507,11 +440,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
{5:some }^short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- SELECT --} |
]])
-- quirk: restoration of select mode is not performed
@@ -521,11 +450,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
so{5:me short lines} |
{5:of }^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- SELECT --} |
]])
eq('s', funcs.mode(1))
@@ -535,11 +460,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
so{5:me short lines} |
{5:of }^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- (insert) SELECT --} |
]])
eq('s', eval('mode(1)'))
@@ -568,8 +489,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of test text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7: }|
{2:Error detected while processing :} |
{2:E605: Exception not caught: very error} |
@@ -600,11 +520,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
indeed some short little ^lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT --} |
]])
@@ -612,8 +528,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
indeed some short little lines |
of test text |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7: }|
{2:Error detected while processing :} |
{2:E605: Exception not caught: very error} |
@@ -627,11 +542,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
indeed some short little ^lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT --} |
]])
eq('i', eval('mode(1)'))
@@ -643,11 +554,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
in{5:deed some short little lines} |
{5:of stuff }^test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT VISUAL --} |
]])
expect([[
@@ -661,11 +568,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
in^deed some short little lines |
of stuff test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT --} |
]])
eq('i', eval('mode(1)'))
@@ -675,11 +578,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
in bar ^deed some short little lines |
of stuff test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT --} |
]])
eq(17, eval('g:y'))
@@ -700,9 +599,7 @@ describe('mappings with <Cmd>', function()
some^ |
{8:some } |
{9:short }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:-- Keyword Local completion (^N^P) }{3:match 1 of 2} |
]])
@@ -717,9 +614,7 @@ describe('mappings with <Cmd>', function()
some^ |
{9:some } |
{9:short }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:-- Keyword Local completion (^N^P) }{10:Back at original} |
]])
end)
@@ -734,11 +629,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
^some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:E492: Not an editor command: text} |
]])
@@ -773,11 +664,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
^some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
eq('n', eval('mode(1)'))
@@ -786,11 +673,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:let g:x = 3^ |
]])
feed('+2<cr>')
@@ -798,11 +681,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short ^lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:let g:x = 3+2 |
]])
eq(5, eval('g:x'))
@@ -811,11 +690,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:let g:y = 7^ |
]])
eq('c', eval('mode(1)'))
@@ -824,11 +699,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short ^lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:-- INSERT --} |
]])
eq('i', eval('mode(1)'))
@@ -842,11 +713,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:bar^ |
]])
@@ -854,11 +721,7 @@ describe('mappings with <Cmd>', function()
screen:expect([[
some short lines |
of test text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:barx^ |
]])
end)
diff --git a/test/functional/ex_cmds/debug_spec.lua b/test/functional/ex_cmds/debug_spec.lua
index a4d381d3f1..5c20cb7324 100644
--- a/test/functional/ex_cmds/debug_spec.lua
+++ b/test/functional/ex_cmds/debug_spec.lua
@@ -20,14 +20,7 @@ describe(':debug', function()
feed(':echoerr bork<cr>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
{2: }|
{3:E121: Undefined variable: bork}|
|
@@ -38,11 +31,7 @@ describe(':debug', function()
feed(':debug echo "aa"| echo "bb"<cr>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2: }|
{3:E121: Undefined variable: bork}|
|
@@ -56,8 +45,7 @@ describe(':debug', function()
feed('step<cr>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2: }|
{3:E121: Undefined variable: bork}|
|
@@ -92,18 +80,7 @@ describe(':debug', function()
feed('<cr>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*12
|
]])
end)
diff --git a/test/functional/ex_cmds/drop_spec.lua b/test/functional/ex_cmds/drop_spec.lua
index 2537ab9cdc..41f0ada567 100644
--- a/test/functional/ex_cmds/drop_spec.lua
+++ b/test/functional/ex_cmds/drop_spec.lua
@@ -23,13 +23,7 @@ describe(":drop", function()
feed_command("drop tmp1.vim")
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
{1:tmp1.vim }|
"tmp1.vim" [New] |
]])
@@ -42,13 +36,7 @@ describe(":drop", function()
feed_command("drop tmp1")
screen:expect([[
│^ |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*7
{2:tmp2 }{1:tmp1 }|
:drop tmp1 |
]])
@@ -63,13 +51,10 @@ describe(":drop", function()
feed_command("drop tmp3")
screen:expect([[
^ │ |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*3
{1:tmp3 }│{0:~ }|
ABC │{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*2
{2:tmp2 [+] tmp1 }|
"tmp3" [New] |
]])
diff --git a/test/functional/ex_cmds/map_spec.lua b/test/functional/ex_cmds/map_spec.lua
index a580e88b93..c8855337ef 100644
--- a/test/functional/ex_cmds/map_spec.lua
+++ b/test/functional/ex_cmds/map_spec.lua
@@ -105,25 +105,19 @@ describe('Screen', function()
command('map <expr> x input("> ")')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
feed('x')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
> ^ |
]])
feed('\n')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
> |
]])
end)
@@ -133,25 +127,19 @@ describe('Screen', function()
feed('i')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed('x')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
> ^ |
]])
feed('\n')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
end)
@@ -161,9 +149,7 @@ describe('Screen', function()
feed(':<F2>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:^ |
]])
end)
@@ -201,8 +187,7 @@ describe('Screen', function()
command('nmap <expr> <F2> execute("throw 42")')
feed('<F2>')
screen:expect([[
- |
- |
+ |*2
Error detected while processing : |
E605: Exception not caught: 42 |
Press ENTER or type command to continue^ |
@@ -210,9 +195,7 @@ describe('Screen', function()
feed('<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
end)
@@ -223,9 +206,7 @@ describe('Screen', function()
feed(':echo "foo')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:echo "foo^ |
]])
feed('<F2>')
@@ -261,9 +242,7 @@ describe('Screen', function()
feed(': nmap a<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
n a b |
]])
end)
diff --git a/test/functional/ex_cmds/mksession_spec.lua b/test/functional/ex_cmds/mksession_spec.lua
index 7522d4a99c..7d9379b703 100644
--- a/test/functional/ex_cmds/mksession_spec.lua
+++ b/test/functional/ex_cmds/mksession_spec.lua
@@ -209,9 +209,7 @@ describe(':mksession', function()
^/ |
|
[Process exited 0] |
- |
- |
- |
+ |*3
]]
command('cd /')
diff --git a/test/functional/ex_cmds/quickfix_commands_spec.lua b/test/functional/ex_cmds/quickfix_commands_spec.lua
index 4d9d8eeb90..d866a862cf 100644
--- a/test/functional/ex_cmds/quickfix_commands_spec.lua
+++ b/test/functional/ex_cmds/quickfix_commands_spec.lua
@@ -137,10 +137,7 @@ it(':vimgrep can specify Unicode pattern without delimiters', function()
feed('i→<Esc>:vimgrep →')
screen:expect([[
{1:→} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
:vimgrep →^ |
]])
end)
diff --git a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua
index c0e592deb8..5bcf44f1c1 100644
--- a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua
+++ b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua
@@ -266,22 +266,7 @@ describe('swapfile detection', function()
feed(':<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*16
: |
]])
nvim1:close()
@@ -303,22 +288,7 @@ describe('swapfile detection', function()
command([[echo 'hello']])
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*16
hello |
]])
nvim2:close()
diff --git a/test/functional/legacy/063_match_and_matchadd_spec.lua b/test/functional/legacy/063_match_and_matchadd_spec.lua
index 235a826640..f17a32406f 100644
--- a/test/functional/legacy/063_match_and_matchadd_spec.lua
+++ b/test/functional/legacy/063_match_and_matchadd_spec.lua
@@ -26,9 +26,7 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
command("call matchaddpos('MyGroup1', [[1, 5], [1, 8, 3]], 10, 3)")
screen:expect([[
abcd{1:e}fg{1:hij}klmnop^q |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
@@ -37,9 +35,7 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
command("call matchaddpos('MyGroup1', [[1, 4, 2], [1, 9, 2]])")
screen:expect([[
abc{1:dΣ}ab{1:cd}e^f |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
diff --git a/test/functional/legacy/107_adjust_window_and_contents_spec.lua b/test/functional/legacy/107_adjust_window_and_contents_spec.lua
index 841eeef0af..5a8fdda32d 100644
--- a/test/functional/legacy/107_adjust_window_and_contents_spec.lua
+++ b/test/functional/legacy/107_adjust_window_and_contents_spec.lua
@@ -50,15 +50,7 @@ describe('107', function()
[1, '1 '] |
[50, '50 '] |
^[59, '59 '] |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*9
3 more lines |
]])
end)
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index a15809907b..3e78d7ca5f 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -33,10 +33,7 @@ describe('argument list commands', function()
feed('N')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
feed(':confirm quit\n')
diff --git a/test/functional/legacy/breakindent_spec.lua b/test/functional/legacy/breakindent_spec.lua
index 3913ba935a..5e3ce27f91 100644
--- a/test/functional/legacy/breakindent_spec.lua
+++ b/test/functional/legacy/breakindent_spec.lua
@@ -30,9 +30,7 @@ describe('breakindent', function()
screen:expect([[
{1: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX|
{1: }^second line |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:-- INSERT --} |
]])
-- No line wraps, so changing 'showbreak' should lead to the same screen.
@@ -47,8 +45,7 @@ describe('breakindent', function()
{1: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX|
{1: } {0:+^$} |
{1: }second line{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- INSERT --} |
]]}
command('setlocal nobreakindent')
@@ -56,8 +53,7 @@ describe('breakindent', function()
{1: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX|
{1: }{0:+^$} |
{1: }second line{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- INSERT --} |
]]}
end)
diff --git a/test/functional/legacy/cmdline_spec.lua b/test/functional/legacy/cmdline_spec.lua
index 3cbff2a01b..54ca4205c3 100644
--- a/test/functional/legacy/cmdline_spec.lua
+++ b/test/functional/legacy/cmdline_spec.lua
@@ -40,13 +40,7 @@ describe('cmdline', function()
screen:expect{grid=[[
{1: + [No Name] }{2: [No Name] }{3: }{1:X}|
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*7
:tabnew |
]]}
@@ -54,14 +48,8 @@ describe('cmdline', function()
screen:expect{grid=[[
{1: + [No Name] }{2: [No Name] }{3: }{1:X}|
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- |
- |
- |
+ {4:~ }|*5
+ |*3
]]}
feed [[gt]]
@@ -82,14 +70,8 @@ describe('cmdline', function()
screen:expect([[
{1: + [No Name] }{2: [No Name] }{3: }{1:X}|
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- |
- |
- |
+ {4:~ }|*5
+ |*3
]])
end)
@@ -105,8 +87,7 @@ describe('cmdline', function()
feed_command('DoSomething')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
|
Executing: DoSomething |
Executing: echo 'hello' |set ts=4 |let v = '123' |echo v |
@@ -135,9 +116,7 @@ describe('cmdline', function()
screen:expect([[
{1:foo }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
:^ |
]])
end)
@@ -156,9 +135,7 @@ describe('cmdline', function()
feed(':for i in range(3)<CR>')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
:for i in range(3) |
: ^ |
]])
@@ -166,9 +143,7 @@ describe('cmdline', function()
-- Note: this may still be considered broken, ref #18140
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
: :let i =^ |
|
]])
@@ -194,22 +169,14 @@ describe('cmdline', function()
feed(':call EchoTwo()')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:[No Name] }|
:call EchoTwo()^ |
]])
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:[No Name] }|
|
]])
@@ -231,10 +198,7 @@ describe('cmdline', function()
screen:expect([[
{2: [No Name] }{3: }|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{1:[No Name] }|
|
]])
@@ -281,58 +245,27 @@ describe('cmdwin', function()
feed('q')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{2:[No Name] }|
{0::}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{1:[Command Line] }|
|
]])
feed([[aecho 'done']])
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{2:[No Name] }|
{0::}echo 'done'^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{1:[Command Line] }|
{4:-- INSERT --} |
]])
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*14
done |
]])
end)
diff --git a/test/functional/legacy/conceal_spec.lua b/test/functional/legacy/conceal_spec.lua
index 6aaa93f886..bcd7e0063b 100644
--- a/test/functional/legacy/conceal_spec.lua
+++ b/test/functional/legacy/conceal_spec.lua
@@ -416,10 +416,7 @@ describe('Conceal', function()
two two two two |hidden| ^here two two |
three three three three {1:t}hree |
{0: >>> }thre{2:e} three three three |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
/here |
]])
@@ -431,10 +428,7 @@ describe('Conceal', function()
two two two two |hidden| here two tw^o |
three three three three three |
{0: >>> }thre{2:e} three three three |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
/here |
]])
end)
@@ -455,21 +449,14 @@ describe('Conceal', function()
]])
screen:expect([[
one two three four five, the ^backticks should be concealed |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
screen:try_resize(75, 7)
screen:expect([[
one two three four five, the ^backticks should be concealed |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end)
@@ -501,8 +488,7 @@ describe('Conceal', function()
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
{0:+ }bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
{0:+ }cccccc |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
diff --git a/test/functional/legacy/cpoptions_spec.lua b/test/functional/legacy/cpoptions_spec.lua
index d2f382ec12..288146199a 100644
--- a/test/functional/legacy/cpoptions_spec.lua
+++ b/test/functional/legacy/cpoptions_spec.lua
@@ -15,19 +15,13 @@ describe('cpoptions', function()
feed('c2w')
screen:expect([[
^one tw$ three |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
-- INSERT -- |
]])
feed('vim<Esc>')
screen:expect([[
vi^m three |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
end)
diff --git a/test/functional/legacy/debugger_spec.lua b/test/functional/legacy/debugger_spec.lua
index e6fb81719f..65f6bd7221 100644
--- a/test/functional/legacy/debugger_spec.lua
+++ b/test/functional/legacy/debugger_spec.lua
@@ -32,14 +32,7 @@ describe('debugger', function()
feed(':source %<CR>')
screen:expect{grid=[[
^let g:Xtest_var += 1{MATCH: *}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
+ {0:~{MATCH: *}}|*8
:source %{MATCH: *}|
]]}
feed(':source %<CR>')
@@ -58,14 +51,7 @@ describe('debugger', function()
feed('cont<CR>')
screen:expect{grid=[[
^let g:Xtest_var += 1{MATCH: *}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
+ {0:~{MATCH: *}}|*8
{MATCH: *}|
]]}
feed(':source %<CR>')
diff --git a/test/functional/legacy/digraph_spec.lua b/test/functional/legacy/digraph_spec.lua
index 7eeb83eb5f..a0399847bd 100644
--- a/test/functional/legacy/digraph_spec.lua
+++ b/test/functional/legacy/digraph_spec.lua
@@ -18,28 +18,19 @@ describe('digraph', function()
feed('i<C-K>')
screen:expect([[
{1:^?} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:-- INSERT --}|
]])
feed('1')
screen:expect([[
{1:^1} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:-- INSERT --}|
]])
feed('2')
screen:expect([[
½^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:-- INSERT --}|
]])
end)
diff --git a/test/functional/legacy/display_spec.lua b/test/functional/legacy/display_spec.lua
index 9c6f521882..ab6b1906c5 100644
--- a/test/functional/legacy/display_spec.lua
+++ b/test/functional/legacy/display_spec.lua
@@ -48,12 +48,7 @@ describe('display', function()
feed('VG7kk')
screen:expect([[
{3: }^f{2:oo} |
- {3: }foo |
- {3: }foo |
- {3: }foo |
- {3: }foo |
- {3: }foo |
- {3: }foo |
+ {3: }foo |*6
{1:-- VISUAL LINE --} |
]])
end)
@@ -80,12 +75,9 @@ describe('display', function()
end
screen:expect((([[
^a│aaa |
- a│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- a│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ a│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*2
b│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
- b│{1:~ }|
- b│{1:~ }|
- b│{1:~ }|
+ b│{1:~ }|*3
{1:@}│{1:~ }|
{2:< }{3:[No Name] [+] }|
|
@@ -97,12 +89,9 @@ describe('display', function()
command('100wincmd >')
screen:expect((([[
^aaa │a|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│a|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│a|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│a|*2
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │b|
- {1:~ }│b|
- {1:~ }│b|
- {1:~ }│b|
+ {1:~ }│b|*3
{1:~ }│{1:@}|
{2:[No Name] [+] }{3:<}|
|
@@ -119,8 +108,7 @@ describe('display', function()
{1:@@@ }|
{2:[No Name] [+] }|
aaa |
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*2
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
{3:[No Name] [+] }|
|
@@ -133,9 +121,7 @@ describe('display', function()
a │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
bb│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
bb│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
- bb│{1:~ }|
- bb│{1:~ }|
- bb│{1:~ }|
+ bb│{1:~ }|*3
{1:@@}│{1:~ }|
{2:< }{3:[No Name] [+] }|
|
@@ -164,17 +150,7 @@ describe('display', function()
feed('736|')
screen:expect([[
<<<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*11
^aaaaaaaaaaaaaaa |
|
]])
@@ -182,16 +158,7 @@ describe('display', function()
feed('D')
screen:expect([[
<<<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*10
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^a|
bbbbb bbbbb bbbbb bbbbb bbbbb bb@@@|
|
@@ -205,29 +172,14 @@ describe('display', function()
bbbbb ccccc ccccc ccccc ccccc cccc|
c ccccc ccccc ddddd ddddd ddddd ddd|
dd ddddd ddddd ddddd |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*8
|
]])
-- "w_skipcol" is reset to bring the entire topline into view because
-- the line length is now smaller than the current skipcol + marker.
feed('x')
screen:expect([[
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*9
aa^a |
bbbbb bbbbb bbbbb bbbbb bbbbb bbbbb|
bbbbb ccccc ccccc ccccc ccccc cccc|
@@ -246,11 +198,7 @@ describe('display', function()
]])
screen:expect([[
<<<bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*5
b^b |
|
]])
@@ -260,12 +208,7 @@ describe('display', function()
feed('$0')
screen:expect([[
<<<b^bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*6
|
]])
-- Going to the start of the line with "b" did not set w_skipcol correctly with 'smoothscroll'.
@@ -273,24 +216,14 @@ describe('display', function()
feed('$b')
screen:expect([[
2 b ^bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*6
|
]])
-- Same for "ge".
feed('$ge')
screen:expect([[
2 ^b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*6
|
]])
end)
diff --git a/test/functional/legacy/edit_spec.lua b/test/functional/legacy/edit_spec.lua
index 939999e21b..0cf2ec006d 100644
--- a/test/functional/legacy/edit_spec.lua
+++ b/test/functional/legacy/edit_spec.lua
@@ -39,19 +39,13 @@ describe('edit', function()
feed('a<C-R>')
screen:expect([[
{1:^"} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:-- INSERT --}|
]])
feed('=')
screen:expect([[
{1:"} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
=^ |
]])
end)
@@ -73,19 +67,13 @@ describe('edit', function()
feed('i<C-R>')
screen:expect([[
{1:^"} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- INSERT --} |
]])
feed('={}')
screen:expect([[
{1:"} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
={2:{}}^ |
]])
-- trying to insert a dictionary produces an error
@@ -102,20 +90,14 @@ describe('edit', function()
feed(':')
screen:expect([[
:^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:-- INSERT --} |
]])
-- ending Insert mode should put the cursor back on the ':'
feed('<Esc>')
screen:expect([[
^: |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
diff --git a/test/functional/legacy/ex_mode_spec.lua b/test/functional/legacy/ex_mode_spec.lua
index f21c47e175..8f8d958530 100644
--- a/test/functional/legacy/ex_mode_spec.lua
+++ b/test/functional/legacy/ex_mode_spec.lua
@@ -118,8 +118,7 @@ describe('Ex mode', function()
{1: 1 }foo bar |
{1: 2 }foo foo |
{1: 3 }^foo foo |
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
|
]])
end)
@@ -166,10 +165,7 @@ describe('Ex mode', function()
feed('vi<CR>')
screen:expect([[
^foo |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)
diff --git a/test/functional/legacy/excmd_spec.lua b/test/functional/legacy/excmd_spec.lua
index eb480a6689..41a478e793 100644
--- a/test/functional/legacy/excmd_spec.lua
+++ b/test/functional/legacy/excmd_spec.lua
@@ -74,21 +74,13 @@ describe(':confirm command dialog', function()
feed(':confirm qall\n')
screen:expect([[
bar2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{2:Xbar [+] }|
foo2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:Xfoo [+] }|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
:confirm qall |
{3:Save changes to "Xbar"?} |
@@ -112,21 +104,13 @@ describe(':confirm command dialog', function()
feed(':confirm qall\n')
screen:expect([[
bar3 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{2:Xbar [+] }|
foo3 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:Xfoo [+] }|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
:confirm qall |
{3:Save changes to "Xbar"?} |
@@ -150,21 +134,13 @@ describe(':confirm command dialog', function()
feed(':confirm qall\n')
screen:expect([[
bar4 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{2:Xbar [+] }|
foo4 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:Xfoo [+] }|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
:confirm qall |
{3:Save changes to "Xbar"?} |
@@ -173,17 +149,10 @@ describe(':confirm command dialog', function()
feed('N')
screen:expect([[
bar4 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{2:Xbar [+] }|
foo4 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:Xfoo [+] }|
|
{1: }|
@@ -215,9 +184,7 @@ describe(':confirm command dialog', function()
feed(':confirm close\n')
screen:expect([[
abc |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:[No Name] [+] }|
|
{1: }|
@@ -228,22 +195,17 @@ describe(':confirm command dialog', function()
feed('C')
screen:expect([[
^abc |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:[No Name] [+] }|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:[No Name] }|
|
]])
feed(':confirm close\n')
screen:expect([[
abc |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:[No Name] [+] }|
|
{1: }|
@@ -254,14 +216,7 @@ describe(':confirm command dialog', function()
feed('N')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
|
]])
end)
@@ -280,9 +235,7 @@ describe(':confirm command dialog', function()
feed(':confirm q\n')
screen:expect([[
foo |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1: }|
:confirm q |
{3:Save changes to "Untitled"?} |
@@ -291,12 +244,7 @@ describe(':confirm command dialog', function()
feed('C')
screen:expect([[
^abc |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]])
@@ -304,9 +252,7 @@ describe(':confirm command dialog', function()
feed(':confirm wq\n')
screen:expect([[
foo |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1: }|
"Xfoo" [noeol] 1L, 3B written |
{3:Save changes to "Untitled"?} |
@@ -315,12 +261,7 @@ describe(':confirm command dialog', function()
feed('C')
screen:expect([[
^abc |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
"Xfoo" [noeol] 1L, 3B written |
]])
@@ -343,8 +284,7 @@ describe(':confirm command dialog', function()
feed(':set ro | confirm w\n')
screen:expect([[
foobar |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
:set ro | confirm w |
{3:'readonly' option is set for "Xconfirm_write_ro".} |
@@ -354,11 +294,7 @@ describe(':confirm command dialog', function()
feed('N')
screen:expect([[
fooba^r |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
1,6 All |
]])
@@ -367,8 +303,7 @@ describe(':confirm command dialog', function()
feed(':confirm w\n')
screen:expect([[
foobar |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
:confirm w |
{3:'readonly' option is set for "Xconfirm_write_ro".} |
@@ -473,8 +408,7 @@ describe(':confirm command dialog', function()
b |
c |
d |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
1,1 All |
]])
diff --git a/test/functional/legacy/fold_spec.lua b/test/functional/legacy/fold_spec.lua
index 83513a3f94..96fad8520c 100644
--- a/test/functional/legacy/fold_spec.lua
+++ b/test/functional/legacy/fold_spec.lua
@@ -72,12 +72,10 @@ describe('folding', function()
dd {{{ |
ee {{{ }}} |
{{{ |
- ff }}} |
- ff }}} |
+ ff }}} |*2
^ |
line 2 foldlevel=2 |
- 1 |
- 1 |
+ 1 |*2
|
]])
@@ -227,22 +225,14 @@ describe('folding', function()
screen:expect([[
{3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|
{3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
feed("j")
screen:expect([[
{3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
{3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end)
@@ -259,10 +249,7 @@ describe('folding', function()
^one |
{2:+-- 2 lines: two····························}|
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
feed('2G')
@@ -271,9 +258,7 @@ describe('folding', function()
^two |
three |
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('4G')
@@ -281,10 +266,7 @@ describe('folding', function()
one |
{2:+-- 2 lines: two····························}|
^four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
feed('3G')
@@ -293,9 +275,7 @@ describe('folding', function()
two |
^three |
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('1G')
@@ -303,10 +283,7 @@ describe('folding', function()
^one |
{2:+-- 2 lines: two····························}|
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
feed('2G')
@@ -315,9 +292,7 @@ describe('folding', function()
^two |
three |
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('k')
@@ -325,10 +300,7 @@ describe('folding', function()
^one |
{2:+-- 2 lines: two····························}|
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)
diff --git a/test/functional/legacy/global_spec.lua b/test/functional/legacy/global_spec.lua
index ff02c41e6c..0619d5fb30 100644
--- a/test/functional/legacy/global_spec.lua
+++ b/test/functional/legacy/global_spec.lua
@@ -28,10 +28,7 @@ describe(':global', function()
feed('<C-C>')
screen:expect([[
^foo |
- foo |
- foo |
- foo |
- foo |
+ foo |*4
{1:Interrupted} |
]])
diff --git a/test/functional/legacy/highlight_spec.lua b/test/functional/legacy/highlight_spec.lua
index 0a130f1607..1e5017fcc1 100644
--- a/test/functional/legacy/highlight_spec.lua
+++ b/test/functional/legacy/highlight_spec.lua
@@ -112,10 +112,7 @@ describe('Visual selection highlight', function()
feed('v$')
screen:expect([[
{0:>}{1:n, no sea takimata sanctus est Lorem ipsum dolor sit amet.}^ |
- |
- |
- |
- |
+ |*4
{2:-- VISUAL --} |
]])
end)
diff --git a/test/functional/legacy/listchars_spec.lua b/test/functional/legacy/listchars_spec.lua
index a9aa238d4e..c35d765eae 100644
--- a/test/functional/legacy/listchars_spec.lua
+++ b/test/functional/legacy/listchars_spec.lua
@@ -121,10 +121,7 @@ describe("'listchars'", function()
{4: } │{4: } │{4: } |
{4: }a │{4: }a │{4: }a |
{4: }aaaaaa │{4: }a{1:>}│{4: }aaaaaa |
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
+ {1:~ }│{1:~ }│{1:~ }|*4
{3:[No Name] [+] <[+] }{2:[No Name] [+] }|
|
]])
@@ -134,10 +131,7 @@ describe("'listchars'", function()
{4: } │{4: } │{4: } |
{4: }a │{4: }a│{4: }a |
{4: }aaaaaa │{4: }{1:>}│{4: }aaaaaa |
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
+ {1:~ }│{1:~ }│{1:~ }|*4
{3:[No Name] [+] <+] }{2:[No Name] [+] }|
|
]])
@@ -147,10 +141,7 @@ describe("'listchars'", function()
{4: } │{4: }│{4: } |
{4: }a │{4: }│{4: }a |
{4: }aaaaaa │{4: }│{4: }aaaaaa |
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
+ {1:~ }│{1:~ }│{1:~ }|*4
{3:[No Name] [+] <] }{2:[No Name] [+] }|
|
]])
@@ -160,10 +151,7 @@ describe("'listchars'", function()
{4: } │{4: }│{4: } |
{4: }a │{4: }│{4: }a |
{4: }aaaaaa │{4: }│{4: }aaaaaa |
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
+ {1:~ }│{1:~ }│{1:~ }|*4
{3:[No Name] [+] < }{2:[No Name] [+] }|
|
]])
@@ -173,10 +161,7 @@ describe("'listchars'", function()
{4: } │{4: }│{4: } |
{4: }a │{4: }│{4: }a |
{4: }aaaaaa │{4: }│{4: }aaaaaa |
- {1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~}│{1:~ }|*4
{3:[No Name] [+] < }{2:[No Name] [+] }|
|
]])
@@ -187,10 +172,7 @@ describe("'listchars'", function()
{4: } │{4: } │{4: } |
{4: }a │{4: }a │{4: }a |
{4: }aaaaaa │{4: }aaaaaa │{4: }aaaaaa |
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
+ {1:~ }│{1:~ }│{1:~ }|*4
{3:[No Name] [+] }{2:[No Name] [+] }{3:[No Name] [+] }|
:set nowrap foldcolumn=4 |
]])
@@ -200,10 +182,7 @@ describe("'listchars'", function()
{4: } │{4: }│{4: } |
{4: }a │{4: }│{4: }a |
{4: }aaaaaa │{4: ^ }│{4: }aaaaaa |
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
- {1:~ }│{1:~ }│{1:~ }|
+ {1:~ }│{1:~ }│{1:~ }|*4
{3:[No Name] [+] }{2:<[+] }{3:[No Name] [+] }|
:set nowrap foldcolumn=4 |
]])
@@ -213,10 +192,7 @@ describe("'listchars'", function()
{4: } │{4: }│{4: } |
{4: }a │{4: }│{4: }a |
{4: }aaaaaa │{4:^ }│{4: }aaaaaa |
- {1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~}│{1:~ }|*4
{3:[No Name] [+] }{2:< }{3:[No Name] [+] }|
:set nowrap foldcolumn=4 |
]])
diff --git a/test/functional/legacy/listlbr_spec.lua b/test/functional/legacy/listlbr_spec.lua
index d4f11a61c2..d8821417b9 100644
--- a/test/functional/legacy/listlbr_spec.lua
+++ b/test/functional/legacy/listlbr_spec.lua
@@ -217,18 +217,14 @@ describe('listlbr', function()
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb {1:c}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
2 |
]])
feed('zo')
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb ^c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} |
]])
@@ -236,18 +232,14 @@ describe('listlbr', function()
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb {1:c}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} 2 |
]])
feed('gq')
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb ^c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} |
]])
@@ -255,18 +247,14 @@ describe('listlbr', function()
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb {1:c}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} 1x2 |
]])
feed('I')
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb ^c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} |
]])
@@ -274,18 +262,14 @@ describe('listlbr', function()
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb {1:c}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} 2 |
]])
feed('s')
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
bbbbbbbbbb ^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:E490: No fold found} |
]])
end)
diff --git a/test/functional/legacy/match_spec.lua b/test/functional/legacy/match_spec.lua
index b6e45c396c..312490e643 100644
--- a/test/functional/legacy/match_spec.lua
+++ b/test/functional/legacy/match_spec.lua
@@ -55,13 +55,7 @@ describe('match highlighting', function()
screen:expect([[
^xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx{1:]} |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
|
]])
end)
@@ -112,14 +106,7 @@ describe('match highlighting', function()
]])
screen:expect([[
{1: ^ }ix |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
|
]])
end)
diff --git a/test/functional/legacy/matchparen_spec.lua b/test/functional/legacy/matchparen_spec.lua
index 22d9247698..f5f7fa55f8 100644
--- a/test/functional/legacy/matchparen_spec.lua
+++ b/test/functional/legacy/matchparen_spec.lua
@@ -47,16 +47,12 @@ describe('matchparen', function()
local screen1 = [[
{1:^()} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]
local screen2 = [[
^aa |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]
diff --git a/test/functional/legacy/messages_spec.lua b/test/functional/legacy/messages_spec.lua
index 146b00acb0..d7781d4b44 100644
--- a/test/functional/legacy/messages_spec.lua
+++ b/test/functional/legacy/messages_spec.lua
@@ -34,18 +34,12 @@ describe('messages', function()
feed('u')
screen:expect({grid = [[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:W10: Warning: Changing a readonly file}^ |
]], timeout = 500})
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
Already at oldest change |
]])
end)
@@ -74,12 +68,7 @@ describe('messages', function()
^one |
NoSuchFile |
three |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
from DebugSilent normal |
]])
@@ -89,12 +78,7 @@ describe('messages', function()
^one |
NoSuchFile |
three |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
from DebugSilent visual |
]])
@@ -105,11 +89,7 @@ describe('messages', function()
one |
NoSuchFil^e |
three |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
from DebugSilent visual |
{1:E447: Can't find file "NoSuchFile" in path} |
]])
@@ -478,15 +458,8 @@ describe('messages', function()
command('mode') -- FIXME: bottom is invalid after scrolling
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- |
- |
+ {0:~ }|*7
+ |*2
]])
feed([[:4 verbose echo system('foo')<CR>]])
screen:expect([[
@@ -555,14 +528,7 @@ describe('messages', function()
feed('q')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
|
]])
end)
@@ -591,18 +557,14 @@ describe('messages', function()
feed('i')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3: }|
{2:-- INSERT --} |
]])
feed('<C-C>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3: }|
|
]])
@@ -617,18 +579,14 @@ describe('messages', function()
feed('i')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3:[No Name] }|
{2:-- INSERT --} |
]])
feed('<Esc>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3:[No Name] }|
|
]])
@@ -639,19 +597,13 @@ describe('messages', function()
feed('i<C-O>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:-- (insert) --} |
]])
feed('<C-C>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)
@@ -673,18 +625,14 @@ describe('messages', function()
screen:expect([[
1 |
2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:Backwards range given, OK to swap (y/n)?}^ |
]])
feed('n')
screen:expect([[
^1 |
2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:Backwards range given, OK to swap (y/n)?}n |
]])
@@ -692,18 +640,14 @@ describe('messages', function()
screen:expect([[
1 |
2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:Backwards range given, OK to swap (y/n)?}^ |
]])
feed('<Esc>')
screen:expect([[
^1 |
2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:Backwards range given, OK to swap (y/n)?}n |
]])
@@ -711,18 +655,14 @@ describe('messages', function()
screen:expect([[
1 |
2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:Backwards range given, OK to swap (y/n)?}^ |
]])
feed('y')
screen:expect([[
y1 |
^y2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:Backwards range given, OK to swap (y/n)?}y |
]])
end)
@@ -749,19 +689,15 @@ describe('messages', function()
screen:expect([[
{2: [No Name] }{1: [No Name] }{3: }{2:X}|
^ |
- {0:~ }|
- {0:~ }|
- |
- |
+ {0:~ }|*2
+ |*2
]])
feed(':tabprev | edit Xfileinfo.txt<CR>')
screen:expect([[
{1: Xfileinfo.txt }{2: [No Name] }{3: }{2:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
"Xfileinfo.txt" [New] |
]])
assert_alive()
@@ -793,10 +729,7 @@ describe('messages', function()
feed('0$')
screen:expect([[
^hi |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
'b' written |
]])
os.remove('b.txt')
diff --git a/test/functional/legacy/move_spec.lua b/test/functional/legacy/move_spec.lua
index 855996da8f..868f4a4644 100644
--- a/test/functional/legacy/move_spec.lua
+++ b/test/functional/legacy/move_spec.lua
@@ -22,11 +22,7 @@ describe(':move', function()
^First |
Third |
Fourth |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
:move +1 |
]])
@@ -38,11 +34,7 @@ describe(':move', function()
Second |
Third |
Fourth |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end)
diff --git a/test/functional/legacy/normal_spec.lua b/test/functional/legacy/normal_spec.lua
index ba875460f5..df96d64708 100644
--- a/test/functional/legacy/normal_spec.lua
+++ b/test/functional/legacy/normal_spec.lua
@@ -18,22 +18,13 @@ describe('normal', function()
]])
screen:expect([[
{1: 2 }222222222222222222222222222222222222|
- {1: }222222222222222222222222222222222222|
- {1: }222222222222222222222222222222222222|
- {1: }222222222222222222222222222222222222|
- {1: }222222222222222222222222222222222222|
+ {1: }222222222222222222222222222222222222|*4
{1: }22222222222222222222 |
{1: 3 }333333333333333333333333333333333333|
- {1: }333333333333333333333333333333333333|
- {1: }333333333333333333333333333333333333|
- {1: }333333333333333333333333333333333333|
- {1: }333333333333333333333333333333333333|
+ {1: }333333333333333333333333333333333333|*4
{1: }33333333333333333333 |
{1: 4 }^444444444444444444444444444444444444|
- {1: }444444444444444444444444444444444444|
- {1: }444444444444444444444444444444444444|
- {1: }444444444444444444444444444444444444|
- {1: }444444444444444444444444444444444444|
+ {1: }444444444444444444444444444444444444|*4
{1: }44444444444444444444 |
|
]])
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua
index ce46ea013d..46c3f804a5 100644
--- a/test/functional/legacy/options_spec.lua
+++ b/test/functional/legacy/options_spec.lua
@@ -66,17 +66,7 @@ describe('set', function()
command('verbose set scroll?')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*11
|
scroll=7 |
Last set from changed window size |
diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua
index 5c3f8a6f8c..ba594801cb 100644
--- a/test/functional/legacy/prompt_buffer_spec.lua
+++ b/test/functional/legacy/prompt_buffer_spec.lua
@@ -57,14 +57,10 @@ describe('prompt buffer', function()
]])
screen:expect([[
cmd: ^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
end
@@ -84,22 +80,13 @@ describe('prompt buffer', function()
cmd: ^ |
[Prompt] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed("exit\n")
screen:expect([[
^other buffer |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*8
|
]])
end)
@@ -110,66 +97,43 @@ describe('prompt buffer', function()
feed("hello<BS><BS>")
screen:expect([[
cmd: hel^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed("<Left><Left><Left><BS>-")
screen:expect([[
cmd: -^hel |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed("<C-O>lz")
screen:expect([[
cmd: -hz^el |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed("<End>x")
screen:expect([[
cmd: -hzelx^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed("<C-U>exit\n")
screen:expect([[
^other buffer |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*8
|
]])
end)
@@ -180,40 +144,28 @@ describe('prompt buffer', function()
feed("<C-O>:call SwitchWindows()<CR>")
screen:expect{grid=[[
cmd: |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
^other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]]}
feed("<C-O>:call SwitchWindows()<CR>")
screen:expect([[
cmd: ^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
-- INSERT -- |
]])
feed("<Esc>")
screen:expect([[
cmd:^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[Prompt] [+] |
other buffer |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
end)
diff --git a/test/functional/legacy/put_spec.lua b/test/functional/legacy/put_spec.lua
index 4a42a1c8a3..e630604d60 100644
--- a/test/functional/legacy/put_spec.lua
+++ b/test/functional/legacy/put_spec.lua
@@ -64,8 +64,7 @@ describe('put', function()
three more text │ three more text |
^four more text │ four more text |
│ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*2
[No Name] [+] [No Name] [+] |
|
]])
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua
index 91dbc120d8..9e62fb55c9 100644
--- a/test/functional/legacy/scroll_opt_spec.lua
+++ b/test/functional/legacy/scroll_opt_spec.lua
@@ -36,17 +36,14 @@ describe('smoothscroll', function()
:5
]])
local s1 = [[
- word word word word word word word word |
- word word word word word word word word |
+ word word word word word word word word |*2
word word word word |
line three |
long word long word long word long word |
long word long word long word |
^line |
- line |
- line |
- ~ |
- ~ |
+ line |*2
+ ~ |*2
|
]]
local s2 = [[
@@ -56,11 +53,8 @@ describe('smoothscroll', function()
long word long word long word long word |
long word long word long word |
^line |
- line |
- line |
- ~ |
- ~ |
- ~ |
+ line |*2
+ ~ |*3
|
]]
local s3 = [[
@@ -69,26 +63,17 @@ describe('smoothscroll', function()
long word long word long word long word |
long word long word long word |
^line |
- line |
- line |
- ~ |
- ~ |
- ~ |
- ~ |
+ line |*2
+ ~ |*4
|
]]
local s4 = [[
line three |
long word long word long word long word |
long word long word long word |
- line |
- line |
+ line |*2
^line |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
|
]]
local s5 = [[
@@ -96,13 +81,9 @@ describe('smoothscroll', function()
line three |
long word long word long word long word |
long word long word long word |
- line |
- line |
+ line |*2
^line |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]]
local s6 = [[
@@ -111,38 +92,30 @@ describe('smoothscroll', function()
line three |
long word long word long word long word |
long word long word long word |
- line |
- line |
+ line |*2
^line |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]]
local s7 = [[
- word word word word word word word word |
- word word word word word word word word |
+ word word word word word word word word |*2
word word word word |
line three |
long word long word long word long word |
long word long word long word |
- line |
- line |
+ line |*2
^line |
- ~ |
- ~ |
+ ~ |*2
|
]]
local s8 = [[
line one |
- word word word word word word word word |
- word word word word word word word word |
+ word word word word word word word word |*2
word word word word |
line three |
long word long word long word long word |
long word long word long word |
- line |
- line |
+ line |*2
^line |
~ |
|
@@ -187,8 +160,7 @@ describe('smoothscroll', function()
ϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛϛ^ϛϛϛϛϛ|
ϛϛϛϛϛ |
222222222222222222222222222222222222 |
- ~ |
- ~ |
+ ~ |*2
|
]])
end)
@@ -217,9 +189,7 @@ describe('smoothscroll', function()
3 ^line |
4 line |
5 line |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
feed('<C-E>')
@@ -231,10 +201,7 @@ describe('smoothscroll', function()
3 ^line |
4 line |
5 line |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
feed('<C-E>')
@@ -245,11 +212,7 @@ describe('smoothscroll', function()
3 ^line |
4 line |
5 line |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
|
]])
exec('set cpo-=n')
@@ -261,10 +224,7 @@ describe('smoothscroll', function()
3 ^line |
4 line |
5 line |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
feed('<C-Y>')
@@ -277,9 +237,7 @@ describe('smoothscroll', function()
3 ^line |
4 line |
5 line |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
feed('<C-Y>')
@@ -293,8 +251,7 @@ describe('smoothscroll', function()
3 ^line |
4 line |
5 line |
- ~ |
- ~ |
+ ~ |*2
|
]])
exec('botright split')
@@ -351,12 +308,7 @@ describe('smoothscroll', function()
y long text very long text very long|
text very long text very long text |
1 three |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*6
--No lines in buffer-- |
]])
end)
@@ -376,8 +328,7 @@ describe('smoothscroll', function()
very long text very long text very long |
text very long text- |
three |
- ~ |
- ~ |
+ ~ |*2
|
]])
exec('set listchars+=precedes:#')
@@ -387,8 +338,7 @@ describe('smoothscroll', function()
very long text very long text very long |
text very long text- |
three |
- ~ |
- ~ |
+ ~ |*2
|
]])
end)
@@ -408,8 +358,7 @@ describe('smoothscroll', function()
]])
screen:expect([[
- ^just some text here |
- ~ |
- ~ |
+ ~ |*2
[No Name] [+] |
- just some text here |
~ |
@@ -580,10 +529,7 @@ describe('smoothscroll', function()
feed('zt')
screen:expect([[
^four |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
feed('zz')
@@ -591,8 +537,7 @@ describe('smoothscroll', function()
<<<of text with lots of text with lots o|
f text with lots of text end |
^four |
- ~ |
- ~ |
+ ~ |*2
|
]])
feed('zb')
@@ -650,8 +595,7 @@ describe('smoothscroll', function()
<<<ts of text with lots of text with lot|
^s of text with lots of text with lots of|
text |
- ~ |
- ~ |
+ ~ |*2
|
]])
feed('0')
@@ -696,18 +640,13 @@ describe('smoothscroll', function()
screen:expect([[
^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
口口口口口口口口口口 |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
feed('<C-E>')
screen:expect([[
<<< 口口口口口口口^口 |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
end)
@@ -795,14 +734,7 @@ describe('smoothscroll', function()
]])
-- does not scroll halfway when scrolling to end of buffer
screen:expect([[
- |
- |
- |
- |
- |
- |
- |
- |
+ |*8
^ |
|
]])
@@ -811,13 +743,7 @@ describe('smoothscroll', function()
-- cursor is not placed below window
screen:expect([[
<<<aaaaaaaaaaaaaaaaa |
- |
- |
- |
- |
- |
- |
- |
+ |*7
^ |
|
]])
@@ -907,8 +833,7 @@ describe('smoothscroll', function()
aaaaaaaaaa |
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaa |
- |
- |
+ |*2
bbb |
|
]])
@@ -917,25 +842,19 @@ describe('smoothscroll', function()
{0:<<<}{1:aaaaaa^a }|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaa |
- |
- |
+ |*2
bbb |
ccc |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('2<C-E>')
screen:expect([[
{0:<<<}{1:aaaaaa^a }|
- |
- |
+ |*2
bbb |
ccc |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -962,21 +881,7 @@ describe('smoothscroll', function()
]])
screen:expect([[
{1: }│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
- {2:@}│ |
+ {2:@}│ |*15
{2:^@}│ |
{3:< }{4:[No Name] [+] }|
|
@@ -1001,8 +906,7 @@ describe('smoothscroll', function()
line3line3line3line3line3line3line3line3|
line3line3line3line3 |
line4 |
- ~ |
- ~ |
+ ~ |*2
[No Name] [+] |
|
]])
@@ -1105,11 +1009,7 @@ describe('smoothscroll', function()
feed('Go123456789<CR>')
screen:expect([[
<<<ery long line ...A very long line ...|
- A very long line ...A very long line ...|
- A very long line ...A very long line ...|
- A very long line ...A very long line ...|
- A very long line ...A very long line ...|
- A very long line ...A very long line ...|
+ A very long line ...A very long line ...|*5
123456789 |
^ |
-- INSERT -- |
diff --git a/test/functional/legacy/search_spec.lua b/test/functional/legacy/search_spec.lua
index 25620f5262..9bf3c466b7 100644
--- a/test/functional/legacy/search_spec.lua
+++ b/test/functional/legacy/search_spec.lua
@@ -688,27 +688,18 @@ describe('search cmdline', function()
local s = [[
{tilde:<<<} 18 19 20 21 22 2|
^3 24 |
- |
- |
- |
- |
+ |*4
]]
screen:expect(s)
feed('/xx')
screen:expect([[
- |
- |
- |
- |
+ |*4
{inc:xx}x |
/xx^ |
]])
feed('x')
screen:expect([[
- |
- |
- |
- |
+ |*4
{inc:xxx} |
/xxx^ |
]])
@@ -737,11 +728,9 @@ describe('Search highlight', function()
]])
feed([[/\_.*<CR>]])
screen:expect([[
- {2:xxx } |
- {2:xxx } |
+ {2:xxx } |*2
{2:^xxx }{3: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
/\_.* |
]])
end)
@@ -769,8 +758,7 @@ describe('Search highlight', function()
xxx {4:y}{5:yy}{3: zzz} |
{3:xxx }{5:yyy}{3: zzz} |
{3:xxx }{5:y}{4:^yy} zzz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- VISUAL --} |
]])
end)
diff --git a/test/functional/legacy/search_stat_spec.lua b/test/functional/legacy/search_stat_spec.lua
index bd5ab68e5c..791ae64b8d 100644
--- a/test/functional/legacy/search_stat_spec.lua
+++ b/test/functional/legacy/search_stat_spec.lua
@@ -35,8 +35,7 @@ describe('search stat', function()
{2:^find this} |
fooooobar |
foba |
- foobar |
- foobar |
+ foobar |*2
foo |
fooooobar |
foba |
@@ -49,8 +48,7 @@ describe('search stat', function()
{2:^find this} |
fooooobar |
foba |
- foobar |
- foobar |
+ foobar |*2
foo |
fooooobar |
foba |
@@ -73,11 +71,7 @@ describe('search stat', function()
{3:^+-- 2 lines: foo·············}|
endif |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
/foo [1/2] |
]])
-- Note: there is an intermediate state where the search stat disappears.
@@ -99,12 +93,7 @@ describe('search stat', function()
int cat; |
int {2:^dog}; |
cat = {2:dog}; |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
/dog [1/2] |
]])
feed('G0gD')
@@ -112,12 +101,7 @@ describe('search stat', function()
int {2:^cat}; |
int dog; |
{2:cat} = dog; |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end)
@@ -148,11 +132,7 @@ describe('search stat', function()
{2:abc}--c |
--------{4:abc} |
--{2:abc} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
/abc^ |
]])
@@ -162,11 +142,7 @@ describe('search stat', function()
{2:abc}--c |
--------{2:abc} |
--{4:abc} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
/abc^ |
]])
@@ -176,11 +152,7 @@ describe('search stat', function()
{4:abc}--c |
--------{2:abc} |
--{2:abc} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
/abc^ |
]])
end)
@@ -197,13 +169,7 @@ describe('search stat', function()
screen:expect([[
{2:^test} |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
/\<test\> [1/1] |
]])
@@ -211,13 +177,7 @@ describe('search stat', function()
screen:expect([[
{2:^test} |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
?\<test\> [1/1] |
]])
@@ -227,13 +187,7 @@ describe('search stat', function()
screen:expect([[
{2:^test} |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
{5:search hit TOP, continuing at BOTTOM} |
]])
end)
diff --git a/test/functional/legacy/source_spec.lua b/test/functional/legacy/source_spec.lua
index f31521607d..4b7d2d361a 100644
--- a/test/functional/legacy/source_spec.lua
+++ b/test/functional/legacy/source_spec.lua
@@ -21,10 +21,7 @@ describe(':source!', function()
feed(':source! Xscript.vim\n')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{1:E22: Scripts nested too deep} |
]])
os.remove('Xscript.vim')
diff --git a/test/functional/legacy/statusline_spec.lua b/test/functional/legacy/statusline_spec.lua
index c5b17f8749..f5119f5e23 100644
--- a/test/functional/legacy/statusline_spec.lua
+++ b/test/functional/legacy/statusline_spec.lua
@@ -60,10 +60,7 @@ describe('statusline', function()
]])
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{3:<F}{2:GHI }|
|
]])
@@ -97,9 +94,7 @@ describe('statusline', function()
screen:expect([[
{5:+-- 2 lines: a···································}|
^c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:g }|
|
]])
@@ -110,8 +105,7 @@ describe('statusline', function()
^a |
b |
c |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3: }|
|
]])
@@ -121,8 +115,7 @@ describe('statusline', function()
{1:a} |
{1:b} |
{1:c}^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:3x2 }|
{2:-- VISUAL BLOCK --} |
]])
@@ -132,8 +125,7 @@ describe('statusline', function()
a |
b |
^c |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:1234 }|
|
]])
@@ -145,8 +137,7 @@ describe('statusline', function()
a |
b |
^c |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] [+] 1234 }|
: |
]])
diff --git a/test/functional/legacy/substitute_spec.lua b/test/functional/legacy/substitute_spec.lua
index f3ce343680..bba3df82d8 100644
--- a/test/functional/legacy/substitute_spec.lua
+++ b/test/functional/legacy/substitute_spec.lua
@@ -179,10 +179,7 @@ describe(':substitute', function()
{1:o}ne |
two |
three |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:replace with (y/n/a/q/l/^E/^Y)?}^ |
]])
end)
diff --git a/test/functional/legacy/tabline_spec.lua b/test/functional/legacy/tabline_spec.lua
index 6b368d1857..f9e813255a 100644
--- a/test/functional/legacy/tabline_spec.lua
+++ b/test/functional/legacy/tabline_spec.lua
@@ -44,9 +44,7 @@ describe('tabline', function()
{3:g }|
{5:+-- 2 lines: a···································}|
^c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
@@ -57,8 +55,7 @@ describe('tabline', function()
^a |
b |
c |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -68,8 +65,7 @@ describe('tabline', function()
{1:a} |
{1:b} |
{1:c}^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- VISUAL BLOCK --} |
]])
@@ -79,8 +75,7 @@ describe('tabline', function()
a |
b |
^c |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -92,8 +87,7 @@ describe('tabline', function()
a |
b |
^c |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
: |
]])
end)
diff --git a/test/functional/legacy/visual_spec.lua b/test/functional/legacy/visual_spec.lua
index 629fab5eb5..4b1f44661f 100644
--- a/test/functional/legacy/visual_spec.lua
+++ b/test/functional/legacy/visual_spec.lua
@@ -33,8 +33,7 @@ describe('Visual highlight', function()
{2:aaaaaa}^ |
{2:bbbb } |
{2:cc } |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1:-- VISUAL BLOCK --} |
]])
@@ -43,8 +42,7 @@ describe('Visual highlight', function()
{2:aaaaaa } |
{2:bbbb } |
{2:cc}^ {2: } |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1:-- VISUAL BLOCK --} |
]])
end)
@@ -60,9 +58,7 @@ describe('Visual highlight', function()
screen:expect([[
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^a|
{0:+}{2:aaaa}aaaaaa |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:-- VISUAL --} |
]])
end)
diff --git a/test/functional/legacy/window_cmd_spec.lua b/test/functional/legacy/window_cmd_spec.lua
index 979b46ae47..14129b386b 100644
--- a/test/functional/legacy/window_cmd_spec.lua
+++ b/test/functional/legacy/window_cmd_spec.lua
@@ -296,10 +296,7 @@ describe('splitkeep', function()
a |
b |
c |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
[No Name] |
^a |
b |
@@ -328,8 +325,7 @@ describe('splitkeep', function()
<<<e line with lots of text in one line |
^with lots of text in one line with lots |
of text in one line |
- ~ |
- ~ |
+ ~ |*2
[No Name] [+] |
|
]])
diff --git a/test/functional/lua/commands_spec.lua b/test/functional/lua/commands_spec.lua
index fca619348d..d8a68219c1 100644
--- a/test/functional/lua/commands_spec.lua
+++ b/test/functional/lua/commands_spec.lua
@@ -117,14 +117,7 @@ describe(':lua command', function()
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]]}
eq('E5108: Error executing lua [string ":lua"]:1: fail\nmuch error\nsuch details', remove_trace(eval('v:errmsg')))
diff --git a/test/functional/lua/loop_spec.lua b/test/functional/lua/loop_spec.lua
index c0924fa0c0..4f98fe0977 100644
--- a/test/functional/lua/loop_spec.lua
+++ b/test/functional/lua/loop_spec.lua
@@ -112,14 +112,7 @@ describe('vim.uv', function()
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
howdy |
]])
eq(true, eval("get(g:, 'valid', v:false)"))
@@ -137,14 +130,7 @@ describe('vim.uv', function()
]])
screen:expect([[
sneaky^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
{5:-- INSERT --} |
]])
eq({blocking=false, mode='n'}, exec_lua("return _G.mode"))
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua
index dfbd2fb18b..3810d44538 100644
--- a/test/functional/lua/luaeval_spec.lua
+++ b/test/functional/lua/luaeval_spec.lua
@@ -521,9 +521,7 @@ describe('v:lua', function()
{1:~ }{2: stuff }{1: }|
{1:~ }{3: steam }{1: }|
{1:~ }{3: strange things }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:-- Omni completion (^O^N^P) }{5:match 1 of 3} |
]]}
meths.set_option_value('operatorfunc', 'v:lua.mymod.noisy', {})
diff --git a/test/functional/lua/overrides_spec.lua b/test/functional/lua/overrides_spec.lua
index c08f3d06a9..f3ea29b8a7 100644
--- a/test/functional/lua/overrides_spec.lua
+++ b/test/functional/lua/overrides_spec.lua
@@ -148,9 +148,7 @@ describe('print', function()
feed([[:lua print('\na')<CR>]])
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2: }|
|
a |
@@ -160,8 +158,7 @@ describe('print', function()
feed([[:lua print('b\n\nc')<CR>]])
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2: }|
b |
|
@@ -196,16 +193,7 @@ describe('debug.debug', function()
feed(':lua Test()\n')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
{1: }|
nil |
lua_debug> ^ |
@@ -213,14 +201,7 @@ describe('debug.debug', function()
feed('print("TEST")\n')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
{1: }|
nil |
lua_debug> print("TEST") |
@@ -230,8 +211,7 @@ describe('debug.debug', function()
feed('<C-c>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1: }|
nil |
lua_debug> print("TEST") |
@@ -247,16 +227,7 @@ describe('debug.debug', function()
feed('<C-l>:lua Test()\n')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
{1: }|
nil |
lua_debug> ^ |
@@ -264,10 +235,7 @@ describe('debug.debug', function()
feed('\n')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{1: }|
nil |
lua_debug> |
@@ -285,32 +253,14 @@ describe('debug.debug', function()
feed(':lua debug.debug() print("x")<cr>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
lua_debug> ^ |
]]}
feed("conttt<cr>") -- misspelled cont; invalid syntax
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
{1: }|
lua_debug> conttt |
{E:E5115: Error while loading debug string: (debug comma}|
@@ -321,12 +271,7 @@ describe('debug.debug', function()
feed("cont<cr>") -- exactly "cont", exit now
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{1: }|
lua_debug> conttt |
{E:E5115: Error while loading debug string: (debug comma}|
@@ -339,18 +284,7 @@ describe('debug.debug', function()
feed('<cr>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
|
]]}
end)
diff --git a/test/functional/lua/secure_spec.lua b/test/functional/lua/secure_spec.lua
index fc20a06390..c59d3f3cda 100644
--- a/test/functional/lua/secure_spec.lua
+++ b/test/functional/lua/secure_spec.lua
@@ -48,9 +48,7 @@ describe('vim.secure', function()
feed_command([[lua vim.secure.read('Xfile')]])
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2: }|
:lua vim.secure.read('Xfile') |
{3:]] .. cwd .. pathsep .. [[Xfile is not trusted.}{MATCH:%s+}|
@@ -59,12 +57,7 @@ describe('vim.secure', function()
feed('d')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
@@ -77,9 +70,7 @@ describe('vim.secure', function()
feed_command([[lua vim.secure.read('Xfile')]])
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2: }|
:lua vim.secure.read('Xfile') |
{3:]] .. cwd .. pathsep .. [[Xfile is not trusted.}{MATCH:%s+}|
@@ -88,12 +79,7 @@ describe('vim.secure', function()
feed('a')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
@@ -107,9 +93,7 @@ describe('vim.secure', function()
feed_command([[lua vim.secure.read('Xfile')]])
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2: }|
:lua vim.secure.read('Xfile') |
{3:]] .. cwd .. pathsep .. [[Xfile is not trusted.}{MATCH:%s+}|
@@ -118,12 +102,7 @@ describe('vim.secure', function()
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
@@ -134,9 +113,7 @@ describe('vim.secure', function()
feed_command([[lua vim.secure.read('Xfile')]])
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2: }|
:lua vim.secure.read('Xfile') |
{3:]] .. cwd .. pathsep .. [[Xfile is not trusted.}{MATCH:%s+}|
@@ -145,8 +122,7 @@ describe('vim.secure', function()
feed('v')
screen:expect{grid=[[
^let g:foobar = 42 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:]] .. funcs.fnamemodify(cwd, ':~') .. pathsep .. [[Xfile [RO]{MATCH:%s+}}|
|
{1:~ }|
diff --git a/test/functional/lua/thread_spec.lua b/test/functional/lua/thread_spec.lua
index e79d26a641..23c0c42f07 100644
--- a/test/functional/lua/thread_spec.lua
+++ b/test/functional/lua/thread_spec.lua
@@ -35,11 +35,7 @@ describe('thread', function()
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2: }|
{3:Error in luv thread:} |
{3:[string "<nvim>"]:2: Error in thread entry func} |
@@ -66,11 +62,7 @@ describe('thread', function()
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2: }|
{3:Error in luv callback, thread:} |
{3:[string "<nvim>"]:6: Error in thread callback} |
@@ -91,14 +83,7 @@ describe('thread', function()
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
print in thread |
]])
end)
@@ -113,14 +98,7 @@ describe('thread', function()
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
{ 1, 2 } |
]])
end)
@@ -294,11 +272,7 @@ describe('threadpool', function()
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2: }|
{3:Error in luv thread:} |
{3:Error: thread arg not support type 'table' at 1} |
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua
index 2d1ee54506..04ffeddc87 100644
--- a/test/functional/lua/ui_event_spec.lua
+++ b/test/functional/lua/ui_event_spec.lua
@@ -46,18 +46,14 @@ describe('vim.ui_attach', function()
feed('ifo')
screen:expect{grid=[[
fo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]]}
funcs.complete(1, {'food', 'foobar', 'foo'})
screen:expect{grid=[[
food^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]]}
expect_events {
@@ -67,9 +63,7 @@ describe('vim.ui_attach', function()
feed '<c-n>'
screen:expect{grid=[[
foobar^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]]}
expect_events {
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index ebe5fc254e..1ef214d611 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -271,9 +271,7 @@ describe('lua stdlib', function()
screen:attach()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -2798,25 +2796,19 @@ describe('lua stdlib', function()
screen:attach()
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]}
exec_lua [[vim.notify_once("I'll only tell you this once...", vim.log.levels.WARN)]]
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{1:I'll only tell you this once...} |
]]}
feed('<C-l>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]}
exec_lua [[vim.notify_once("I'll only tell you this once...")]]
diff --git a/test/functional/options/chars_spec.lua b/test/functional/options/chars_spec.lua
index a082204980..9800a21e60 100644
--- a/test/functional/options/chars_spec.lua
+++ b/test/functional/options/chars_spec.lua
@@ -27,36 +27,27 @@ describe("'fillchars'", function()
eq('', eval('&fillchars'))
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
end)
it('supports whitespace', function()
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
command('set fillchars=eob:\\ ')
screen:expect([[
^ |
- |
- |
- |
- |
+ |*4
]])
end)
it('supports multibyte char', function()
command('set fillchars=eob:ñ')
screen:expect([[
^ |
- ñ |
- ñ |
- ñ |
+ ñ |*3
|
]])
end)
@@ -77,9 +68,7 @@ describe("'fillchars'", function()
command('set fillchars=fold:x')
screen:expect([[
^+-- 2 lines: fooxxxxxxxx│+-- 2 lines: fooxxxxxxx|
- ~ │~ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*3
|
]])
end)
@@ -92,9 +81,7 @@ describe("'fillchars'", function()
command('setl fillchars=fold:x')
screen:expect([[
^+-- 2 lines: fooxxxxxxxx│+-- 2 lines: foo·······|
- ~ │~ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*3
|
]])
end)
@@ -108,9 +95,7 @@ describe("'fillchars'", function()
command('set fillchars&')
screen:expect([[
^+-- 2 lines: foo········│+-- 2 lines: fooxxxxxxx|
- ~ │~ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*3
|
]])
end)
@@ -132,9 +117,7 @@ describe("'listchars'", function()
command('set listchars=tab:<->')
screen:expect([[
<------><------>^<------> │<------><------><------>|
- ~ │~ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*3
|
]])
end)
@@ -146,9 +129,7 @@ describe("'listchars'", function()
command('setl listchars<')
screen:expect([[
> > ^> │<------><------><------>|
- ~ │~ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*3
|
]])
end)
@@ -160,9 +141,7 @@ describe("'listchars'", function()
command('set listchars=tab:>-,eol:$')
screen:expect([[
>------->-------^>-------$│<------><------><------>|
- ~ │~ |
- ~ │~ |
- ~ │~ |
+ ~ │~ |*3
|
]])
end)
diff --git a/test/functional/options/cursorbind_spec.lua b/test/functional/options/cursorbind_spec.lua
index 498206936a..0dfac100ee 100644
--- a/test/functional/options/cursorbind_spec.lua
+++ b/test/functional/options/cursorbind_spec.lua
@@ -32,10 +32,7 @@ describe("'cursorbind'", function()
feed('20l')
screen:expect([[
a bb cc dd ee ff gg │aa bb cc dd ee ff gg^ hh ii jj kk ll mm |
- {4: }│ {4: } |
- {4: }│ {4: } |
- {4: }│ {4: } |
- {4: }│ {4: } |
+ {4: }│ {4: } |*4
{1:~ }│{1:~ }|
{3:[No Name] [+] }{2:[No Name] [+] }|
|
@@ -43,10 +40,7 @@ describe("'cursorbind'", function()
feed('10l')
screen:expect([[
hh ii jj kk ll mm n│aa bb cc dd ee ff gg hh ii jj ^kk ll mm |
- {4: } │ {4: } |
- {4: } │ {4: } |
- {4: } │ {4: } |
- {4: } │ {4: } |
+ {4: } │ {4: } |*4
{1:~ }│{1:~ }|
{3:[No Name] [+] }{2:[No Name] [+] }|
|
@@ -56,10 +50,7 @@ describe("'cursorbind'", function()
feed('20l')
screen:expect([[
{4:a bb cc dd ee ff gg }│{4:aa bb cc dd ee ff gg^ hh ii jj kk ll mm }|
- {4: }│ {4: } |
- {4: }│ {4: } |
- {4: }│ {4: } |
- {4: }│ {4: } |
+ {4: }│ {4: } |*4
{1:~ }│{1:~ }|
{3:[No Name] [+] }{2:[No Name] [+] }|
|
@@ -67,10 +58,7 @@ describe("'cursorbind'", function()
feed('10l')
screen:expect([[
{4: hh ii jj kk ll mm n}│{4:aa bb cc dd ee ff gg hh ii jj ^kk ll mm }|
- {4: } │ {4: } |
- {4: } │ {4: } |
- {4: } │ {4: } |
- {4: } │ {4: } |
+ {4: } │ {4: } |*4
{1:~ }│{1:~ }|
{3:[No Name] [+] }{2:[No Name] [+] }|
|
@@ -80,10 +68,7 @@ describe("'cursorbind'", function()
feed('40l')
screen:expect([[
kk ll mm nn oo pp qq│ bb cc dd ee ff gg hh ii jj kk ll mm n^n|
- │ |
- │ |
- │ |
- │ |
+ │ |*4
{1:~ }│{1:~ }|
{3:[No Name] [+] }{2:[No Name] [+] }|
|
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index 7858b626de..4a0aa7d023 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -32,8 +32,7 @@ describe('startup defaults', function()
command('filetype')
screen:expect([[
^ |
- ~ |
- ~ |
+ ~ |*2
]]..expected
)
end
diff --git a/test/functional/options/shortmess_spec.lua b/test/functional/options/shortmess_spec.lua
index a56e9c09b4..6bc00ca1c5 100644
--- a/test/functional/options/shortmess_spec.lua
+++ b/test/functional/options/shortmess_spec.lua
@@ -22,9 +22,7 @@ describe("'shortmess'", function()
feed(':edit foo<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
"foo" [New] |
]])
eq(1, eval('bufnr("%")'))
@@ -33,9 +31,7 @@ describe("'shortmess'", function()
feed(':edit bar<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
:edit bar |
]])
eq(2, eval('bufnr("%")'))
@@ -47,27 +43,21 @@ describe("'shortmess'", function()
feed(':edit foo<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
"foo" [New] |
]])
eq(1, eval('bufnr("%")'))
feed(':edit bar<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
"bar" [New] |
]])
eq(2, eval('bufnr("%")'))
feed(':bprevious<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
"foo" [New] --No lines in buffer-- |
]])
eq(1, eval('bufnr("%")'))
@@ -76,18 +66,14 @@ describe("'shortmess'", function()
feed(':bnext<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
:bnext |
]])
eq(2, eval('bufnr("%")'))
feed(':bprevious<CR>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
:bprevious |
]])
eq(1, eval('bufnr("%")'))
diff --git a/test/functional/plugin/lsp/semantic_tokens_spec.lua b/test/functional/plugin/lsp/semantic_tokens_spec.lua
index b7ac53f270..b95d435c2b 100644
--- a/test/functional/plugin/lsp/semantic_tokens_spec.lua
+++ b/test/functional/plugin/lsp/semantic_tokens_spec.lua
@@ -125,9 +125,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
end)
@@ -164,9 +162,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
@@ -199,9 +195,7 @@ describe('semantic token highlighting', function()
#endif |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
end)
@@ -234,9 +228,7 @@ describe('semantic token highlighting', function()
#endif |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
@@ -257,9 +249,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
end)
@@ -286,9 +276,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
@@ -309,9 +297,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], unchanged = true }
@@ -365,9 +351,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
feed_command('%s/int x/int x()/')
@@ -383,11 +367,8 @@ describe('semantic token highlighting', function()
{6:#else} |
{6: printf("%d\n", x);} |
{6:#endif} |
- } |
- } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ } |*2
+ {1:~ }|*3
:noh |
]] }
end)
@@ -447,9 +428,7 @@ describe('semantic token highlighting', function()
#endif |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
@@ -474,9 +453,7 @@ describe('semantic token highlighting', function()
#endif |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], unchanged = true }
end)
@@ -520,9 +497,7 @@ describe('semantic token highlighting', function()
#endif |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
end)
@@ -565,9 +540,7 @@ describe('semantic token highlighting', function()
{6:#endif} |
} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]] }
feed_command('%s/int x/int x()/')
@@ -587,11 +560,8 @@ describe('semantic token highlighting', function()
{6:#else} |
{6: printf("%d\n", x);} |
{6:#endif} |
- } |
- } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ } |*2
+ {1:~ }|*3
:noh |
]] }
local messages = exec_lua('return server2.messages')
@@ -633,20 +603,7 @@ describe('semantic token highlighting', function()
expected_screen = function()
screen:expect{grid=[[
char* {7:foo} = "\n"^; |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
|
]]}
end,
@@ -774,11 +731,7 @@ int main()
{6: comment} |
{6: #endif} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]]}
end,
@@ -828,18 +781,7 @@ b = "as"]],
{6:-- comment} |
local {7:a} = 1 |
{2:b} = "as^" |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*12
|
]]}
end,
@@ -960,16 +902,7 @@ b = "as"]],
//{6:/ what?} |
} |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
|
]]}
end,
@@ -1055,20 +988,7 @@ b = "as"]],
expected_screen1 = function()
screen:expect{grid=[[
char* {7:foo} = "\n"^; |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
|
]]}
end,
@@ -1076,19 +996,7 @@ b = "as"]],
screen:expect{grid=[[
^ |
char* {7:foo} = "\n"; |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*13
|
]]}
end,
@@ -1304,10 +1212,7 @@ int main()
{6: printf("%d\n", x);} |
{6:#endif} |
^} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
end,
@@ -1325,9 +1230,7 @@ int main()
{6: printf("%d\n", x);} |
{6:^#endif} |
} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end,
@@ -1363,40 +1266,14 @@ int main()
expected_screen1 = function()
screen:expect{grid=[[
{7:string} = "test^" |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
|
]]}
end,
expected_screen2 = function()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
|
]]}
end,
diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua
index 815ddbc523..f16fca51f9 100644
--- a/test/functional/plugin/man_spec.lua
+++ b/test/functional/plugin/man_spec.lua
@@ -71,8 +71,7 @@ describe(':Man', function()
screen:expect{grid=[[
this i{c:^H}is{c:^H}s a{c:^H}a test |
with _{c:^H}o_{c:^H}v_{c:^H}e_{c:^H}r_{c:^H}s_{c:^H}t_{c:^H}r_{c:^H}u_{c:^H}c_{c:^H}k tex^t |
- {eob:~ }|
- {eob:~ }|
+ {eob:~ }|*2
|
]]}
@@ -81,8 +80,7 @@ describe(':Man', function()
screen:expect([[
^this {b:is} {b:a} test |
with {i:overstruck} text |
- {eob:~ }|
- {eob:~ }|
+ {eob:~ }|*2
|
]])
end)
@@ -95,8 +93,7 @@ describe(':Man', function()
screen:expect{grid=[=[
this {c:^[}[1mis {c:^[}[3ma {c:^[}[4mtest{c:^[}[0m |
{c:^[}[4mwith{c:^[}[24m {c:^[}[4mescaped{c:^[}[24m {c:^[}[4mtext{c:^[}[24^m |
- {eob:~ }|
- {eob:~ }|
+ {eob:~ }|*2
|
]=]}
@@ -105,8 +102,7 @@ describe(':Man', function()
screen:expect([[
^this {b:is }{bi:a }{biu:test} |
{u:with} {u:escaped} {u:text} |
- {eob:~ }|
- {eob:~ }|
+ {eob:~ }|*2
|
]])
end)
@@ -120,8 +116,7 @@ describe(':Man', function()
screen:expect([[
^this {b:is} {b:あ} test |
with {i:överstrũck} te{i:xt¶} |
- {eob:~ }|
- {eob:~ }|
+ {eob:~ }|*2
|
]])
end)
diff --git a/test/functional/provider/clipboard_spec.lua b/test/functional/provider/clipboard_spec.lua
index 0099183302..3c2e358745 100644
--- a/test/functional/provider/clipboard_spec.lua
+++ b/test/functional/provider/clipboard_spec.lua
@@ -112,15 +112,13 @@ describe('clipboard', function()
feed('"+yl')
screen:expect([[
^a |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
clipboard: No provider. Try ":checkhealth" or ":h clipboard". |
]])
feed('"+p')
screen:expect([[
a^a |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
clipboard: No provider. Try ":checkhealth" or ":h clipboard". |
]])
end)
@@ -132,22 +130,19 @@ describe('clipboard', function()
feed('yl')
screen:expect([[
^a |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
clipboard: No provider. Try ":checkhealth" or ":h clipboard". |
]])
feed(':<CR>')
screen:expect([[
^a |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
: |
]])
feed('p')
screen:expect([[
a^a |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
: |
]])
end)
@@ -157,8 +152,7 @@ describe('clipboard', function()
feed_command('redir @+> | :silent echo system("cat CONTRIBUTING.md") | redir END')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
clipboard: No provider. Try ":checkhealth" or ":h clipboard". |
]])
end)
@@ -184,8 +178,7 @@ describe('clipboard', function()
feed_command('let @+="foo"')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
clipboard: No provider. Try ":checkhealth" or ":h clipboard". |
]])
end)
@@ -336,8 +329,7 @@ describe('clipboard (with fake clipboard.vim)', function()
feed_command('redir @+> | bogus_cmd | redir END')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1:E492: Not an editor command: bogus_cmd | redir END} |
]])
end)
@@ -663,8 +655,7 @@ describe('clipboard (with fake clipboard.vim)', function()
feed_command("registers")
screen:expect([[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{4: }|
:registers |
{1:Type Name Content} |
@@ -728,8 +719,7 @@ describe('clipboard (with fake clipboard.vim)', function()
screen:expect([[
the ^source |
a target |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
diff --git a/test/functional/terminal/altscreen_spec.lua b/test/functional/terminal/altscreen_spec.lua
index cbe5e06005..21edd522c0 100644
--- a/test/functional/terminal/altscreen_spec.lua
+++ b/test/functional/terminal/altscreen_spec.lua
@@ -27,11 +27,7 @@ describe(':terminal altscreen', function()
]])
enter_altscreen()
screen:expect([[
- |
- |
- |
- |
- |
+ |*5
{1: } |
{3:-- TERMINAL --} |
]])
@@ -45,9 +41,7 @@ describe(':terminal altscreen', function()
line1 |
line2 |
line3 |
- |
- |
- |
+ |*3
]])
end)
@@ -114,8 +108,7 @@ describe(':terminal altscreen', function()
local function wait_removal()
screen:try_resize(screen._width, screen._height - 2)
screen:expect([[
- |
- |
+ |*2
rows: 4, cols: 50 |
{1: } |
{3:-- TERMINAL --} |
@@ -127,8 +120,7 @@ describe(':terminal altscreen', function()
feed('<c-\\><c-n>4k')
screen:expect([[
^ |
- |
- |
+ |*2
rows: 4, cols: 50 |
|
]])
diff --git a/test/functional/terminal/api_spec.lua b/test/functional/terminal/api_spec.lua
index 117a5b74b7..aa46ccc8a8 100644
--- a/test/functional/terminal/api_spec.lua
+++ b/test/functional/terminal/api_spec.lua
@@ -25,10 +25,7 @@ describe('api', function()
it("qa! RPC request during insert-mode", function()
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
|
{3:-- TERMINAL --} |
]]}
@@ -39,10 +36,7 @@ describe('api', function()
-- Wait for socket creation.
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
]]..socket_name..[[ |
{3:-- TERMINAL --} |
]])
@@ -54,10 +48,7 @@ describe('api', function()
-- Wait for stdin to be processed.
screen:expect([[
[tui] insert-mode{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
{3:-- INSERT --} |
{3:-- TERMINAL --} |
]])
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua
index ece09bca88..02958a69e0 100644
--- a/test/functional/terminal/buffer_spec.lua
+++ b/test/functional/terminal/buffer_spec.lua
@@ -60,11 +60,7 @@ describe(':terminal buffer', function()
feed('<c-\\><c-n>:set bufhidden=wipe<cr>:enew<cr>')
screen:expect([[
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*5
:enew |
]])
end)
@@ -73,11 +69,7 @@ describe(':terminal buffer', function()
feed(':bnext:l<esc>')
screen:expect([[
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*5
|
]])
end)
@@ -89,11 +81,7 @@ describe(':terminal buffer', function()
screen:expect([[
tty ready |
{2:^ } |
- |
- |
- |
- |
- |
+ |*5
]])
end)
@@ -113,10 +101,7 @@ describe(':terminal buffer', function()
screen:expect([[
tty ready |
{2:^ } |
- |
- |
- |
- |
+ |*4
{8:E21: Cannot make changes, 'modifiable' is off} |
]])
end)
@@ -127,22 +112,16 @@ describe(':terminal buffer', function()
feed('"ap"ap')
screen:expect([[
^tty ready |
- appended tty ready |
- appended tty ready |
+ appended tty ready |*2
{2: } |
- |
- |
+ |*2
:let @a = "appended " . @a |
]])
-- operator count is also taken into consideration
feed('3"ap')
screen:expect([[
^tty ready |
- appended tty ready |
- appended tty ready |
- appended tty ready |
- appended tty ready |
- appended tty ready |
+ appended tty ready |*5
:let @a = "appended " . @a |
]])
end)
@@ -155,17 +134,14 @@ describe(':terminal buffer', function()
^tty ready |
appended tty ready |
{2: } |
- |
- |
- |
+ |*3
:put a |
]])
-- line argument is only used to move the cursor
feed_command('6put a')
screen:expect([[
tty ready |
- appended tty ready |
- appended tty ready |
+ appended tty ready |*2
{2: } |
|
^ |
@@ -177,21 +153,13 @@ describe(':terminal buffer', function()
feed('<c-\\><c-n>:bd!<cr>')
screen:expect([[
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*5
:bd! |
]])
feed_command('bnext')
screen:expect([[
^ |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*5
:bnext |
]])
end)
@@ -268,10 +236,7 @@ describe(':terminal buffer', function()
screen:expect([[
ydaer ytt|
{1:a}aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]])
command('bdelete!')
@@ -309,10 +274,7 @@ describe(':terminal buffer', function()
screen:expect{grid=[[
tty ready |
{2:^ } |
- |
- |
- |
- |
+ |*4
{3:-- (terminal) --} |
]]}
eq('ntT', funcs.mode(1))
@@ -321,10 +283,7 @@ describe(':terminal buffer', function()
screen:expect{grid=[[
tty ready |
{2: } |
- |
- |
- |
- |
+ |*4
:let g:x = 17^ |
]]}
@@ -332,10 +291,7 @@ describe(':terminal buffer', function()
screen:expect{grid=[[
tty ready |
{1: } |
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]]}
eq('t', funcs.mode(1))
@@ -456,9 +412,7 @@ describe('terminal input', function()
})
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,1 All}|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -580,8 +534,7 @@ describe('termopen()', function()
screen:expect(([[
^%s{MATCH:%%s+}|
[Process exited 0] |
- |
- |
+ |*2
]]):format(expected))
end
diff --git a/test/functional/terminal/channel_spec.lua b/test/functional/terminal/channel_spec.lua
index 8510df5347..6fb1a21561 100644
--- a/test/functional/terminal/channel_spec.lua
+++ b/test/functional/terminal/channel_spec.lua
@@ -140,8 +140,7 @@ describe('no crash when TermOpen autocommand', function()
async_meths.command('terminal foobar')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
^ |
]]}
feed('<CR>')
@@ -154,8 +153,7 @@ describe('no crash when TermOpen autocommand', function()
feed('i<CR>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
assert_alive()
@@ -166,15 +164,13 @@ describe('no crash when TermOpen autocommand', function()
async_meths.command('terminal foobar')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
^ |
]]}
feed('<CR>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
assert_alive()
@@ -185,15 +181,13 @@ describe('no crash when TermOpen autocommand', function()
async_meths.open_term(0, {})
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
^ |
]]}
feed('<CR>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
assert_alive()
diff --git a/test/functional/terminal/cursor_spec.lua b/test/functional/terminal/cursor_spec.lua
index 37bb0ee817..95d601e3f0 100644
--- a/test/functional/terminal/cursor_spec.lua
+++ b/test/functional/terminal/cursor_spec.lua
@@ -25,10 +25,7 @@ describe(':terminal cursor', function()
screen:expect([[
tty ready |
testing cursor{1: } |
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]])
end)
@@ -38,11 +35,7 @@ describe(':terminal cursor', function()
screen:expect([[
tty ready |
{2:^ } |
- |
- |
- |
- |
- |
+ |*5
]])
end)
@@ -93,21 +86,14 @@ describe(':terminal cursor', function()
hide_cursor()
screen:expect([[
tty ready |
- |
- |
- |
- |
- |
+ |*5
{3:-- TERMINAL --} |
]])
show_cursor()
screen:expect([[
tty ready |
{1: } |
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]])
-- same for when the terminal is unfocused
@@ -116,21 +102,13 @@ describe(':terminal cursor', function()
screen:expect([[
tty ready |
^ |
- |
- |
- |
- |
- |
+ |*5
]])
show_cursor()
screen:expect([[
tty ready |
{2:^ } |
- |
- |
- |
- |
- |
+ |*5
]])
end)
end)
@@ -160,21 +138,14 @@ describe('cursor with customized highlighting', function()
screen:expect([[
tty ready |
{1: } |
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]])
feed('<c-\\><c-n>')
screen:expect([[
tty ready |
{2:^ } |
- |
- |
- |
- |
- |
+ |*5
]])
end)
end)
@@ -205,10 +176,7 @@ describe('buffer cursor position is correct in terminal without number column',
screen._handle_busy_start = function() end
screen._handle_busy_stop = function() end
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::}{17:^ }{16: }|
{3:-- TERMINAL --} |
@@ -225,10 +193,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('at the end', function()
feed('<C-R>r')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::aaaaaaaa}{17:^ }{16: }|
{3:-- TERMINAL --} |
@@ -236,10 +201,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 9}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::aaaaaaa^a}{1: }{16: }|
|
@@ -250,10 +212,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the end', function()
feed('<C-R>r<C-X><C-X>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::aaaaaa}{17:^a}{16:a }|
{3:-- TERMINAL --} |
@@ -261,10 +220,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 7}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::aaaaa^a}{1:a}{16:a }|
|
@@ -275,10 +231,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the start', function()
feed('<C-R>r<C-B><C-O>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::a}{17:^a}{16:aaaaaa }|
{3:-- TERMINAL --} |
@@ -286,10 +239,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 2}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::^a}{1:a}{16:aaaaaa }|
|
@@ -306,10 +256,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('at the end', function()
feed('<C-R>r')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µµµµµµµµ}{17:^ }{16: }|
{3:-- TERMINAL --} |
@@ -317,10 +264,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 17}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µµµµµµµ^µ}{1: }{16: }|
|
@@ -331,10 +275,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the end', function()
feed('<C-R>r<C-X><C-X>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µµµµµµ}{17:^µ}{16:µ }|
{3:-- TERMINAL --} |
@@ -342,10 +283,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 13}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µµµµµ^µ}{1:µ}{16:µ }|
|
@@ -356,10 +294,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the start', function()
feed('<C-R>r<C-B><C-O>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µ}{17:^µ}{16:µµµµµµ }|
{3:-- TERMINAL --} |
@@ -367,10 +302,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 3}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::^µ}{1:µ}{16:µµµµµµ }|
|
@@ -389,10 +321,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('at the end', function()
feed('<C-R>r')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µ̳µ̳µ̳µ̳µ̳µ̳µ̳µ̳}{17:^ }{16: }|
{3:-- TERMINAL --} |
@@ -400,10 +329,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 33}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µ̳µ̳µ̳µ̳µ̳µ̳µ̳^µ̳}{1: }{16: }|
|
@@ -414,10 +340,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the end', function()
feed('<C-R>r<C-X><C-X>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µ̳µ̳µ̳µ̳µ̳µ̳}{17:^µ̳}{16:µ̳ }|
{3:-- TERMINAL --} |
@@ -425,10 +348,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 25}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µ̳µ̳µ̳µ̳µ̳^µ̳}{1:µ̳}{16:µ̳ }|
|
@@ -439,10 +359,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the start', function()
feed('<C-R>r<C-B><C-O>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::µ̳}{17:^µ̳}{16:µ̳µ̳µ̳µ̳µ̳µ̳ }|
{3:-- TERMINAL --} |
@@ -450,10 +367,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 5}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::^µ̳}{1:µ̳}{16:µ̳µ̳µ̳µ̳µ̳µ̳ }|
|
@@ -472,10 +386,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('at the end', function()
feed('<C-R>r')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::哦哦哦哦哦哦哦哦}{17:^ }{16: }|
{3:-- TERMINAL --} |
@@ -483,10 +394,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 25}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::哦哦哦哦哦哦哦^哦}{1: }{16: }|
|
@@ -497,10 +405,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the end', function()
feed('<C-R>r<C-X><C-X>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::哦哦哦哦哦哦}{17:^哦}{16:哦 }|
{3:-- TERMINAL --} |
@@ -508,10 +413,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 19}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::哦哦哦哦哦^哦}{1:哦}{16:哦 }|
|
@@ -522,10 +424,7 @@ describe('buffer cursor position is correct in terminal without number column',
it('near the start', function()
feed('<C-R>r<C-B><C-O>')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::哦}{17:^哦}{16:哦哦哦哦哦哦 }|
{3:-- TERMINAL --} |
@@ -533,10 +432,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 4}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::^哦}{1:哦}{16:哦哦哦哦哦哦 }|
|
@@ -549,10 +445,7 @@ describe('buffer cursor position is correct in terminal without number column',
setup_ex_register('aaaaaaaa ')
feed('<C-R>r')
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::aaaaaaaa }{17:^ }{16: }|
{3:-- TERMINAL --} |
@@ -561,10 +454,7 @@ describe('buffer cursor position is correct in terminal without number column',
eq({6, 13}, eval('nvim_win_get_cursor(0)'))
feed([[<C-\><C-N>]])
screen:expect([[
- {16: }|
- {16: }|
- {16: }|
- {16: }|
+ {16: }|*4
{16:Entering Ex mode. Type "visual" to go to Normal mode. }|
{16::aaaaaaaa ^ }{1: }{16: }|
|
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua
index 77fe57dd94..927c021a23 100644
--- a/test/functional/terminal/ex_terminal_spec.lua
+++ b/test/functional/terminal/ex_terminal_spec.lua
@@ -177,8 +177,7 @@ local function test_terminal_with_fake_shell(backslash)
feed_command('terminal')
screen:expect([[
^ |
- ~ |
- ~ |
+ ~ |*2
E91: 'shell' option is empty |
]])
end)
@@ -188,8 +187,7 @@ local function test_terminal_with_fake_shell(backslash)
feed_command('terminal')
screen:expect([[
^interact $ |
- |
- |
+ |*2
:terminal |
]])
end)
diff --git a/test/functional/terminal/highlight_spec.lua b/test/functional/terminal/highlight_spec.lua
index 84bd7a2d4a..7abf12c886 100644
--- a/test/functional/terminal/highlight_spec.lua
+++ b/test/functional/terminal/highlight_spec.lua
@@ -37,10 +37,7 @@ describe(':terminal highlight', function()
screen:expect([[
tty ready |
{10: } |
- |
- |
- |
- |
+ |*4
{5:-- TERMINAL --} |
]])
end)
@@ -64,10 +61,7 @@ describe(':terminal highlight', function()
screen:expect(sub([[
tty ready |
{NUM:text}text{10: } |
- |
- |
- |
- |
+ |*4
{5:-- TERMINAL --} |
]]))
end
@@ -194,10 +188,7 @@ describe(':terminal highlight forwarding', function()
screen:expect([[
tty ready |
{1: } |
- |
- |
- |
- |
+ |*4
{2:-- TERMINAL --} |
]])
end)
@@ -213,10 +204,7 @@ describe(':terminal highlight forwarding', function()
screen:expect{grid=[[
tty ready |
{3:text}{4:color}text{1: } |
- |
- |
- |
- |
+ |*4
{2:-- TERMINAL --} |
]]}
end)
@@ -246,10 +234,7 @@ describe(':terminal highlight with custom palette', function()
screen:expect([[
tty ready |
{7: } |
- |
- |
- |
- |
+ |*4
{9:-- TERMINAL --} |
]])
end)
@@ -263,10 +248,7 @@ describe(':terminal highlight with custom palette', function()
screen:expect([[
tty ready |
{1:text}text{7: } |
- |
- |
- |
- |
+ |*4
{9:-- TERMINAL --} |
]])
end)
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua
index c882d51f34..d2c636b03f 100644
--- a/test/functional/terminal/scrollback_spec.lua
+++ b/test/functional/terminal/scrollback_spec.lua
@@ -362,11 +362,7 @@ describe(':terminal prints more lines than the screen height and exits', functio
-- closes the buffer correctly after pressing a key
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
|
]])
end)
@@ -614,10 +610,7 @@ describe("pending scrollback line handling", function()
or {'printf', ('hi\n'):rep(12)}
)
screen:expect [[
- hi |
- hi |
- hi |
- hi |
+ hi |*4
|
[Process exited 0]{2: } |
{3:-- TERMINAL --} |
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 9978bcca9d..45be0dd3a1 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -49,9 +49,7 @@ describe('TUI', function()
})
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -139,8 +137,7 @@ describe('TUI', function()
{8:FAIL 0} |
{8:FAIL 1} |
{8:FAIL 2} |
- |
- |
+ |*2
{10:-- More --}{1: } |
{3:-- TERMINAL --} |
]]}
@@ -205,12 +202,7 @@ describe('TUI', function()
feed_data('\003')
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*6
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -273,9 +265,7 @@ describe('TUI', function()
feed_data('i\022\027j')
screen:expect([[
<M-j>{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -291,9 +281,7 @@ describe('TUI', function()
feed_data('\027[27u;')
screen:expect([[
ESCsemicolo{1:n} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -307,9 +295,7 @@ describe('TUI', function()
feed_data('i\022\027\000')
screen:expect([[
<M-C-Space>{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -325,9 +311,7 @@ describe('TUI', function()
attrs[11] = {foreground = 81}
screen:expect([[
{11:^G^V^M}{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -654,9 +638,7 @@ describe('TUI', function()
end
screen:expect([[
{1:p}opup menu test |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
:let g:menustr = 'bar' |
{3:-- TERMINAL --} |
@@ -674,8 +656,7 @@ describe('TUI', function()
end
screen:expect([[
{1:p}opup menu test |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{4:~ }{13: foo }{4: }|
{5:[No Name] [+] }{13: bar }{5: }|
:let g:menustr = 'bar' {13: baz } |
@@ -688,8 +669,7 @@ describe('TUI', function()
end
screen:expect([[
{1:p}opup menu test |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{4:~ }{13: foo }{4: }|
{5:[No Name] [+] }{13: bar }{5: }|
:let g:menustr = 'bar' {14: baz } |
@@ -702,9 +682,7 @@ describe('TUI', function()
end
screen:expect([[
{1:p}opup menu test |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
:let g:menustr = 'baz' |
{3:-- TERMINAL --} |
@@ -743,8 +721,7 @@ describe('TUI', function()
screen:expect([[
0123456789./*-+ |
={1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -753,8 +730,7 @@ describe('TUI', function()
screen:expect([[
0123456789./*-+ |
{1:=} |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -763,8 +739,7 @@ describe('TUI', function()
screen:expect([[
0123456789./*-+ |
={1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -773,8 +748,7 @@ describe('TUI', function()
screen:expect([[
0{1:1}23456789./*-+ |
= |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -783,8 +757,7 @@ describe('TUI', function()
screen:expect([[
0123456789./*-+ |
={1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -793,8 +766,7 @@ describe('TUI', function()
screen:expect([[
0123456789./*-+ |
={1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- REPLACE --} |
{3:-- TERMINAL --} |
@@ -803,8 +775,7 @@ describe('TUI', function()
screen:expect([[
0123456789./*-+ |
{1:=} |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -813,8 +784,7 @@ describe('TUI', function()
screen:expect([[
{1:0}123456789./*-+ |
= |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -823,8 +793,7 @@ describe('TUI', function()
screen:expect([[
0123456789{1:.}/*-+ |
= |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -833,8 +802,7 @@ describe('TUI', function()
screen:expect([[
0123456789{1:/}*-+ |
= |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -843,8 +811,7 @@ describe('TUI', function()
screen:expect([[
{1:0}123456789/*-+ |
= |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -853,8 +820,7 @@ describe('TUI', function()
screen:expect([[
0123456789/*-{1:+} |
= |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -867,8 +833,7 @@ describe('TUI', function()
screen:expect([[
{12: + [No Name] + [No Name] }{3: [No Name] }{1: }{12:X}|
{1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -887,8 +852,7 @@ describe('TUI', function()
screen:expect([[
{12: + [No Name] + [No Name] }{3: [No Name] }{1: }{12:X}|
{1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -909,8 +873,7 @@ describe('TUI', function()
screen:expect([[
<D-j><T-k><T-D-CR><M-T-C-S-D-BS> |
<D-F13><T-F14><T-D-F15><M-T-C-S-D-F16>{1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -922,9 +885,7 @@ describe('TUI', function()
feed_data('i""\027i\027[200~')
screen:expect([[
"{1:"} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -933,9 +894,7 @@ describe('TUI', function()
expect_child_buf_lines({'"pasted from terminal"'})
screen:expect([[
"pasted from terminal{1:"} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -945,9 +904,7 @@ describe('TUI', function()
wait_for_mode('n')
screen:expect([[
"pasted from termina{1:l}" |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -958,8 +915,7 @@ describe('TUI', function()
screen:expect([[
"pasted from terminapasted from terminalpasted fro|
m termina{1:l}l" |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -994,8 +950,7 @@ describe('TUI', function()
screen:expect{grid=[[
thisjust paste it{1:™}3 is here |
|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -1026,11 +981,9 @@ describe('TUI', function()
screen:expect{grid=[[
tty ready |
{1: } |
- |
- |
+ |*2
{5:^^^^^^^ }|
- {3:-- TERMINAL --} |
- {3:-- TERMINAL --} |
+ {3:-- TERMINAL --} |*2
]]}
feed_data('\027[200~')
feed_data('hallo')
@@ -1038,11 +991,9 @@ describe('TUI', function()
screen:expect{grid=[[
tty ready |
hallo{1: } |
- |
- |
+ |*2
{5:^^^^^^^ }|
- {3:-- TERMINAL --} |
- {3:-- TERMINAL --} |
+ {3:-- TERMINAL --} |*2
]]}
end)
@@ -1112,8 +1063,7 @@ describe('TUI', function()
screen:expect{grid=[[
foo |
|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
:"line 1{1:"} |
{3:-- TERMINAL --} |
@@ -1123,8 +1073,7 @@ describe('TUI', function()
wait_for_mode('n')
feed_data('.')
screen:expect{grid=[[
- foo |
- foo |
+ foo |*2
{1: } |
{4:~ }|
{5:[No Name] [+] }|
@@ -1170,8 +1119,7 @@ describe('TUI', function()
screen:expect{grid=[[
foo |
{1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -1198,8 +1146,7 @@ describe('TUI', function()
--Dot-repeat/redo is not modified by failed paste.
feed_data('.')
screen:expect{grid=[[
- foo |
- foo |
+ foo |*2
{1: } |
{4:~ }|
{5:[No Name] [+] }|
@@ -1209,8 +1156,7 @@ describe('TUI', function()
-- Editor should still work after failed/drained paste.
feed_data('ityped input...\027[27u')
screen:expect{grid=[[
- foo |
- foo |
+ foo |*2
typed input..{1:.} |
{4:~ }|
{5:[No Name] [+] }|
@@ -1287,8 +1233,7 @@ describe('TUI', function()
screen:expect([[
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz|
zzzzzzzzzzzzzz end{1: } |
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1304,9 +1249,7 @@ describe('TUI', function()
feed_data('\027[200~'..expected..'\027[201~')
screen:expect{grid=[[
|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
:<{1: } |
{3:-- TERMINAL --} |
@@ -1388,9 +1331,7 @@ describe('TUI', function()
feed_data('\027[201~')
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1401,9 +1342,7 @@ describe('TUI', function()
feed_data('i')
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1413,9 +1352,7 @@ describe('TUI', function()
feed_data('00~pasted from terminal\027[201~')
screen:expect([[
pasted from terminal{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1426,9 +1363,7 @@ describe('TUI', function()
feed_data('i')
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1438,9 +1373,7 @@ describe('TUI', function()
feed_data('1~')
screen:expect([[
pasted from terminal{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1460,9 +1393,7 @@ describe('TUI', function()
feed_data('i')
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1470,9 +1401,7 @@ describe('TUI', function()
feed_data('\027[200~pasted') -- phase 1
screen:expect([[
pasted{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1480,9 +1409,7 @@ describe('TUI', function()
feed_data(' from terminal') -- phase 2
screen:expect([[
pasted from terminal{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1516,9 +1443,7 @@ describe('TUI', function()
feed_data(':set termguicolors?\n')
screen:expect([[
{5:^}{6:G} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
{3:[No Name] [+] }|
notermguicolors |
{4:-- TERMINAL --} |
@@ -1527,9 +1452,7 @@ describe('TUI', function()
feed_data(':set termguicolors\n')
screen:expect([[
{7:^}{8:G} |
- {9:~}{10: }|
- {9:~}{10: }|
- {9:~}{10: }|
+ {9:~}{10: }|*3
{3:[No Name] [+] }|
:set termguicolors |
{4:-- TERMINAL --} |
@@ -1538,9 +1461,7 @@ describe('TUI', function()
feed_data(':set notermguicolors\n')
screen:expect([[
{5:^}{6:G} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
{3:[No Name] [+] }|
:set notermguicolors |
{4:-- TERMINAL --} |
@@ -1565,9 +1486,7 @@ describe('TUI', function()
child_exec_lua('vim.cmd.terminal(...)', testprg('tty-test'))
screen:expect{grid=[[
{1:t}ty ready |
- |
- |
- |
+ |*3
{2:^^^^^^^ }|
|
{3:-- TERMINAL --} |
@@ -1576,8 +1495,7 @@ describe('TUI', function()
screen:expect{grid=[[
{1:t}ty ready |
{4:text}{5:color}text |
- |
- |
+ |*2
{2:^^^^^^^ }|
|
{3:-- TERMINAL --} |
@@ -1587,8 +1505,7 @@ describe('TUI', function()
screen:expect{grid=[[
{1:t}ty ready |
{4:text}colortext |
- |
- |
+ |*2
{2:^^^^^^^ }|
:set notermguicolors |
{3:-- TERMINAL --} |
@@ -1696,9 +1613,7 @@ describe('TUI', function()
feed_data ':set visualbell\n'
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
:set visualbell |
{3:-- TERMINAL --} |
@@ -1710,9 +1625,7 @@ describe('TUI', function()
feed_data 'i'
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -1723,11 +1636,9 @@ describe('TUI', function()
exec_lua([[vim.uv.kill(vim.fn.jobpid(vim.bo.channel), 'sigterm')]])
screen:expect{grid=[[
Vim: Caught deadly signal 'SIGTERM' |
- |
- |
+ |*2
[Process exited 1]{1: } |
- |
- |
+ |*2
{3:-- TERMINAL --} |
]]}
end)
@@ -1749,9 +1660,7 @@ describe('TUI', function()
})
screen:expect([[
{1: } |
- {2:~}{3: }|
- {2:~}{3: }|
- {2:~}{3: }|
+ {2:~}{3: }|*3
{4:[No Name] }|
|
{5:-- TERMINAL --} |
@@ -1759,9 +1668,7 @@ describe('TUI', function()
feed_data('i')
screen:expect([[
{1: } |
- {2:~}{3: }|
- {2:~}{3: }|
- {2:~}{3: }|
+ {2:~}{3: }|*3
{4:[No Name] }|
{5:-- INSERT --} |
{5:-- TERMINAL --} |
@@ -1772,9 +1679,7 @@ describe('TUI', function()
child_session:request('nvim_echo', {{'foo'}}, false, {})
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
foo |
{3:-- TERMINAL --} |
@@ -1782,9 +1687,7 @@ describe('TUI', function()
exec_lua([[vim.uv.kill(vim.fn.jobpid(vim.bo.channel), 'sigwinch')]])
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -1797,9 +1700,7 @@ describe('TUI', function()
feed_data(':call jobwait([g:id])\n')
screen:expect([[
|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
:call jobwait([g:id]) |
{3:-- TERMINAL --} |
@@ -1807,9 +1708,7 @@ describe('TUI', function()
feed_data('\003')
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
Type :qa and press <Enter> to exit Nvim |
{3:-- TERMINAL --} |
@@ -1847,11 +1746,7 @@ describe('TUI', function()
]])
screen:expect([[
^ │ |
- {2:~ }│{4:~ }|
- {2:~ }│{4:~ }|
- {2:~ }│{4:~ }|
- {2:~ }│{4:~ }|
- {2:~ }│{4:~ }|
+ {2:~ }│{4:~ }|*5
{2:~ }│{5:[No Name] 0,0-1 All}|
{2:~ }│ |
{5:new }{1:{MATCH:<.*[/\]nvim }}|
@@ -1878,9 +1773,7 @@ describe('TUI', function()
local screen = thelpers.setup_child_nvim({'--clean', '-l', script_file})
screen:expect{grid=[[
{1: } |
- ~ |
- ~ |
- ~ |
+ ~ |*3
[No Name] 0,0-1 All|
|
{3:-- TERMINAL --} |
@@ -1926,9 +1819,7 @@ describe('TUI', function()
})
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -1937,9 +1828,7 @@ describe('TUI', function()
command([[call chansend(b:terminal_job_id, "\<C-h>")]])
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
<C-h> |
{3:-- TERMINAL --} |
@@ -1956,8 +1845,7 @@ describe('TUI', function()
}, { cols = 80 })
screen:expect{grid=[[
{1:1}st line |
- |
- |
+ |*2
2nd line |
{5:[No Name] [+] 1,1 All}|
|
@@ -1991,9 +1879,7 @@ describe('TUI UIEnter/UILeave', function()
})
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -2001,9 +1887,7 @@ describe('TUI UIEnter/UILeave', function()
feed_data(":echo g:evs\n")
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
['VimEnter', 'UIEnter'] |
{3:-- TERMINAL --} |
@@ -2028,9 +1912,7 @@ describe('TUI FocusGained/FocusLost', function()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -2048,9 +1930,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('\027[I')
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
gained |
{3:-- TERMINAL --} |
@@ -2059,9 +1939,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('\027[O')
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
lost |
{3:-- TERMINAL --} |
@@ -2074,9 +1952,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('i')
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
:set noshowmode |
{3:-- TERMINAL --} |
@@ -2085,9 +1961,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('\027[I')
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
gained |
{3:-- TERMINAL --} |
@@ -2095,9 +1969,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('\027[O')
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
lost |
{3:-- TERMINAL --} |
@@ -2112,9 +1984,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('\027[I')
screen:expect([[
|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
:{1: } |
{3:-- TERMINAL --} |
@@ -2122,9 +1992,7 @@ describe('TUI FocusGained/FocusLost', function()
feed_data('\027[O')
screen:expect{grid=[[
|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
:{1: } |
{3:-- TERMINAL --} |
@@ -2165,8 +2033,7 @@ describe('TUI FocusGained/FocusLost', function()
{1:r}eady $ zia |
|
[Process exited 0] |
- |
- |
+ |*2
:terminal zia |
{3:-- TERMINAL --} |
]]}
@@ -2176,8 +2043,7 @@ describe('TUI FocusGained/FocusLost', function()
{1:r}eady $ zia |
|
[Process exited 0] |
- |
- |
+ |*2
gained |
{3:-- TERMINAL --} |
]], timeout=(4 * screen.timeout)}
@@ -2187,8 +2053,7 @@ describe('TUI FocusGained/FocusLost', function()
{1:r}eady $ zia |
|
[Process exited 0] |
- |
- |
+ |*2
lost |
{3:-- TERMINAL --} |
]])
@@ -2252,24 +2117,18 @@ describe("TUI 't_Co' (terminal colors)", function()
screen:expect(string.format([[
{1: } |
- %s|
- %s|
- %s|
- %s|
+ %s|*4
|
{3:-- TERMINAL --} |
- ]], tline, tline, tline, tline))
+ ]], tline))
feed_data(":echo &t_Co\n")
screen:expect(string.format([[
{1: } |
- %s|
- %s|
- %s|
- %s|
+ %s|*4
%-3s |
{3:-- TERMINAL --} |
- ]], tline, tline, tline, tline, tostring(maxcolors and maxcolors or "")))
+ ]], tline, tostring(maxcolors and maxcolors or "")))
end
-- ansi and no terminal type at all:
@@ -2586,10 +2445,7 @@ describe("TUI", function()
feed_data('Gitext')
screen:expect([[
text{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
{3:-- INSERT --} |
{3:-- TERMINAL --} |
]])
@@ -2606,10 +2462,7 @@ describe("TUI", function()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
|
{3:-- TERMINAL --} |
]])
@@ -2618,10 +2471,7 @@ describe("TUI", function()
screen:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
|
{3:-- TERMINAL --} |
]], unchanged=true}
@@ -2652,9 +2502,7 @@ describe('TUI bg color', function()
it('triggers OptionSet event on unsplit terminal-response', function()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,0-1 All}|
|
{3:-- TERMINAL --} |
@@ -2668,9 +2516,7 @@ describe('TUI bg color', function()
setup_bg_test()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,0-1 All}|
|
{3:-- TERMINAL --} |
@@ -2685,9 +2531,7 @@ describe('TUI bg color', function()
it('triggers OptionSet event with split terminal-response', function()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,0-1 All}|
|
{3:-- TERMINAL --} |
@@ -2703,9 +2547,7 @@ describe('TUI bg color', function()
setup_bg_test()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,0-1 All}|
|
{3:-- TERMINAL --} |
@@ -2722,9 +2564,7 @@ describe('TUI bg color', function()
it('not triggers OptionSet event with invalid terminal-response', function()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,0-1 All}|
|
{3:-- TERMINAL --} |
@@ -2738,9 +2578,7 @@ describe('TUI bg color', function()
setup_bg_test()
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] 0,0-1 All}|
|
{3:-- TERMINAL --} |
@@ -2774,9 +2612,7 @@ describe("TUI as a client", function()
feed_data("iHello, World")
screen_server:expect{grid=[[
Hello, World{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -2784,9 +2620,7 @@ describe("TUI as a client", function()
feed_data("\027")
screen_server:expect{grid=[[
Hello, Worl{1:d} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -2800,9 +2634,7 @@ describe("TUI as a client", function()
screen_client:expect{grid=[[
Hello, Worl{1:d} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -2814,10 +2646,7 @@ describe("TUI as a client", function()
screen_server:expect{grid=[[
{1:a}aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
{5:[No Name] [+] }|
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]]}
@@ -2844,10 +2673,7 @@ describe("TUI as a client", function()
screen_client:expect{grid=[[
Halloj{1:!} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
|
{3:-- TERMINAL --} |
]]}
@@ -2857,11 +2683,9 @@ describe("TUI as a client", function()
exec_lua([[vim.uv.kill(vim.fn.jobpid(vim.bo.channel), 'sigterm')]])
screen_client:expect{grid=[[
Vim: Caught deadly signal 'SIGTERM' |
- |
- |
+ |*2
[Process exited 1]{1: } |
- |
- |
+ |*2
{3:-- TERMINAL --} |
]]}
@@ -2885,9 +2709,7 @@ describe("TUI as a client", function()
Remote ui failed to start: {MATCH:.*}|
|
[Process exited 1]{1: } |
- |
- |
- |
+ |*3
{3:-- TERMINAL --} |
]])
end)
@@ -2907,9 +2729,7 @@ describe("TUI as a client", function()
})
screen_server:expect{grid=[[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] }|
|
{3:-- TERMINAL --} |
@@ -2918,9 +2738,7 @@ describe("TUI as a client", function()
feed_data("iHello, World")
screen_server:expect{grid=[[
Hello, World{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
{3:-- INSERT --} |
{3:-- TERMINAL --} |
@@ -2928,9 +2746,7 @@ describe("TUI as a client", function()
feed_data("\027")
screen_server:expect{grid=[[
Hello, Worl{1:d} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -2944,9 +2760,7 @@ describe("TUI as a client", function()
screen_client:expect{grid=[[
Hello, Worl{1:d} |
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*3
{5:[No Name] [+] }|
|
{3:-- TERMINAL --} |
@@ -2959,20 +2773,14 @@ describe("TUI as a client", function()
screen_server:expect{grid=[[
|
[Process exited ]] .. status .. [[]{1: }{MATCH:%s+}|
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]]}
-- assert that client has exited
screen_client:expect{grid=[[
|
[Process exited ]] .. status .. [[]{1: }{MATCH:%s+}|
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]]}
diff --git a/test/functional/terminal/window_spec.lua b/test/functional/terminal/window_spec.lua
index 57f1c881b7..1686160680 100644
--- a/test/functional/terminal/window_spec.lua
+++ b/test/functional/terminal/window_spec.lua
@@ -121,11 +121,7 @@ describe(':terminal window', function()
screen:expect([[
tty ready |
{2:^ } |
- |
- |
- |
- |
- |
+ |*5
]])
feed(':set colorcolumn=20<CR>i')
end)
@@ -134,10 +130,7 @@ describe(':terminal window', function()
screen:expect([[
tty ready |
{1: } |
- |
- |
- |
- |
+ |*4
{3:-- TERMINAL --} |
]])
end)
@@ -185,20 +178,12 @@ describe(':terminal with multigrid', function()
it('resizes to requested size', function()
screen:expect([[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*6
[3:--------------------------------------------------]|
## grid 2
tty ready |
{1: } |
- |
- |
- |
- |
+ |*4
## grid 3
{3:-- TERMINAL --} |
]])
@@ -209,24 +194,13 @@ describe(':terminal with multigrid', function()
else
screen:expect([[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*6
[3:--------------------------------------------------]|
## grid 2
tty ready |
rows: 10, cols: 20 |
{1: } |
- |
- |
- |
- |
- |
- |
- |
+ |*7
## grid 3
{3:-- TERMINAL --} |
]])
@@ -238,12 +212,7 @@ describe(':terminal with multigrid', function()
else
screen:expect([[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*6
[3:--------------------------------------------------]|
## grid 2
rows: 10, cols: 20 |
@@ -260,12 +229,7 @@ describe(':terminal with multigrid', function()
else
screen:expect([[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*6
[3:--------------------------------------------------]|
## grid 2
tty ready |
diff --git a/test/functional/terminal/window_split_tab_spec.lua b/test/functional/terminal/window_split_tab_spec.lua
index da14531fa2..f160dc6864 100644
--- a/test/functional/terminal/window_split_tab_spec.lua
+++ b/test/functional/terminal/window_split_tab_spec.lua
@@ -50,8 +50,7 @@ describe(':terminal', function()
tty ready |
rows: 5, cols: 50 |
{2: } |
- |
- |
+ |*2
========== |
:2split |
]])
@@ -63,8 +62,7 @@ describe(':terminal', function()
^tty ready |
rows: 5, cols: 50 |
{2: } |
- |
- |
+ |*2
========== |
:wincmd p |
]])
@@ -80,14 +78,7 @@ describe(':terminal', function()
screen:expect([[
tty ready |
^foo{2: } |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*8
]])
end)
@@ -112,9 +103,7 @@ describe(':terminal', function()
tty ready |
rows: 7, cols: 47 |
{2: } |
- |
- |
- |
+ |*3
^ |
|
]])
diff --git a/test/functional/treesitter/fold_spec.lua b/test/functional/treesitter/fold_spec.lua
index a8abbc002b..bcace366bd 100644
--- a/test/functional/treesitter/fold_spec.lua
+++ b/test/functional/treesitter/fold_spec.lua
@@ -157,10 +157,7 @@ void ui_refresh(void)
{1:3} } |
{1:2} } |
{1:│}^} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*4
{3:[No Name] [+] }|
{1:-}void ui_refresh(void) |
{1:│}{ |
@@ -181,9 +178,7 @@ void ui_refresh(void)
{1:3} } |
{1:2} } |
{1:│}} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
{4:[No Name] [+] }|
|
]]}
@@ -208,12 +203,7 @@ void ui_refresh(void)
{1:2} } |
{1:│} } |
{1: }} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*6
{3:[No Name] [+] }|
{1: } int width = INT_MAX, height = INT_MAX; |
{1: } bool ext_widgets[kUIExtCount]; |
@@ -232,11 +222,7 @@ void ui_refresh(void)
{1:2} } |
{1:│} } |
{1: }} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
{4:[No Name] [+] }|
|
]]}
@@ -264,10 +250,7 @@ void ui_refresh(void)
{1:3} } |
{1:2} } |
{1:│}} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*4
{3:[No Name] [+] }|
{1:-}void ui_refresh(void) |
{1:│}{ |
@@ -288,9 +271,7 @@ void ui_refresh(void)
{1:3} } |
{1:2} } |
{1:│}} |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
{4:[No Name] [+] }|
|
]]}
@@ -324,12 +305,7 @@ void ui_refresh(void)
{1: } } |
{1: } } |
{1: }} |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*6
{4:[No Name] [+] }|
{1:+ }{2:+-- 9 lines: void ui_refresh(void)·······················}|
{1: } for (size_t i = 0; i < ui_count; i++) { |
@@ -342,11 +318,7 @@ void ui_refresh(void)
{1: } ^} |
{1: } } |
{1: }} |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*5
{5:[No Name] [+] }|
|
]], attr_ids={
@@ -409,9 +381,7 @@ void qsort(void *base, size_t nel, size_t width, int (*compar)(const void *, con
feed('ggVGzf')
screen:expect{grid=[[
{2:^void}{1: }{3:qsort}{4:(}{2:void}{1: }{5:*}{3:base}{4:,}{1: }{2:size_t}{1: }{3:nel}{4:,}{1: }{2:size_t}{1: }{3:width}{4:,}{1: }{2:int}{1: }{4:(}{5:*}{3:compa}|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]}
end)
@@ -465,9 +435,7 @@ end]])
feed('ggVGzf')
screen:expect{grid=[[
{1:^+-- 19 lines: void qsort(void *base, size_t nel, size_t widt}|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]}
end)
diff --git a/test/functional/treesitter/highlight_spec.lua b/test/functional/treesitter/highlight_spec.lua
index e037c9e215..01f92de0d6 100644
--- a/test/functional/treesitter/highlight_spec.lua
+++ b/test/functional/treesitter/highlight_spec.lua
@@ -100,17 +100,7 @@ local injection_grid_c = [[
return 42; \ |
} |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
|
]]
@@ -121,17 +111,7 @@ local injection_grid_expected_c = [[
{4:return} {5:42}; \ |
} |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
|
]]
@@ -178,8 +158,7 @@ describe('treesitter highlighting (C)', function()
1, (void *)(ptrdiff_t)cb); |
return 0; |
^} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -204,8 +183,7 @@ describe('treesitter highlighting (C)', function()
{5:1}, ({3:void} *)({3:ptrdiff_t})cb); |
{4:return} {5:0}; |
^} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -227,8 +205,7 @@ describe('treesitter highlighting (C)', function()
{5:1}, ({3:void} *)({3:ptrdiff_t})cb); |
{4:return} {5:0}; |
} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -366,8 +343,7 @@ describe('treesitter highlighting (C)', function()
{4:for} ({3:UIExtension} i = {5:0}; ({3:int})i < kUIExtCount; i++) { |
{4:for} ({3:size_t} i = {5:0}; i < ui_count; i++) { |
{3:int} width = {5:INT_MAX}, height = {5:INT_MAX}; |
- } |
- } |
+ } |*2
{3:void} ui_refresh({3:void}) |
:sort |
]]}
@@ -517,17 +493,7 @@ describe('treesitter highlighting (C)', function()
{4:return} {5:42}; \ |
} |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
|
]]}
end)
@@ -556,8 +522,7 @@ describe('treesitter highlighting (C)', function()
{5:1}, ({3:void} *)({3:ptrdiff_t})cb); |
{4:return} {5:0}; |
^} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -580,8 +545,7 @@ describe('treesitter highlighting (C)', function()
{5:1}, ({3:void} *)({3:ptrdiff_t})cb); |
{4:return} {5:0}; |
^} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
screen:expect{ unchanged=true }
@@ -608,17 +572,7 @@ describe('treesitter highlighting (C)', function()
{8: }{12:return}{8: 42; \} |
{8: }} |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
|
]], attr_ids={
[1] = {bold = true, foreground = Screen.colors.Blue1};
@@ -641,21 +595,7 @@ describe('treesitter highlighting (C)', function()
screen:expect{grid=[[
char* x = "Will somebody ever read this?"; |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*15
|
]]}
@@ -672,21 +612,7 @@ describe('treesitter highlighting (C)', function()
screen:expect{grid=[[
{3:char}* x = {5:"Will somebody ever read this?"}; |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*15
|
]]}
@@ -695,21 +621,7 @@ describe('treesitter highlighting (C)', function()
screen:expect{grid=[[
{5:char}* x = {5:"Will somebody ever read this?"}; |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*15
|
]]}
end)
@@ -747,8 +659,7 @@ describe('treesitter highlighting (C)', function()
1, (void *)(ptrdiff_t)cb); |
return 0; |
^} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
end)
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua
index 81e514c9aa..f7b8144ff9 100644
--- a/test/functional/ui/bufhl_spec.lua
+++ b/test/functional/ui/bufhl_spec.lua
@@ -51,11 +51,7 @@ describe('Buffer highlighting', function()
screen:expect([[
these are some lines |
with colorful tex^t |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
@@ -65,11 +61,7 @@ describe('Buffer highlighting', function()
screen:expect([[
these are {2:some} lines |
with {3:colorful tex^t} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
@@ -78,10 +70,7 @@ describe('Buffer highlighting', function()
these are {2:some} lines |
^ |
with {3:colorful text} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
@@ -90,10 +79,7 @@ describe('Buffer highlighting', function()
these are some lines |
^ |
with colorful text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)
@@ -129,9 +115,7 @@ describe('Buffer highlighting', function()
in {6:order} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} source^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -143,9 +127,7 @@ describe('Buffer highlighting', function()
in {6:order} to de{4:monstr}ate |
combin{9:ing hi}ghlights |
{9:from diff}erent source^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -157,9 +139,7 @@ describe('Buffer highlighting', function()
in {6:order} to de{4:monstr}ate |
combin{9:ing hi}ghlights |
{9:from diff}erent source^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -171,9 +151,7 @@ describe('Buffer highlighting', function()
in order to {7:demonstrate} |
{7:combining} highlights |
from {7:different} source^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -187,9 +165,7 @@ describe('Buffer highlighting', function()
in {6:order} to de{4:monstr}ate |
{7:combining} highlights |
from {7:different} source^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -201,9 +177,7 @@ describe('Buffer highlighting', function()
^ |
in {6:order} to {7:de}{5:monstr}{7:ate} |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
@@ -216,9 +190,7 @@ describe('Buffer highlighting', function()
|
{8:from different sources} |
{8:^in }{20:order}{8: to demonstrate} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
--screen:expect([[
@@ -226,9 +198,7 @@ describe('Buffer highlighting', function()
-- |
-- {9:from }{8:diff}{7:erent} sources |
-- ^in {6:order} to {7:de}{5:monstr}{7:ate} |
- -- {1:~ }|
- -- {1:~ }|
- -- {1:~ }|
+ -- {1:~ }|*3
-- |
--]])
@@ -238,9 +208,7 @@ describe('Buffer highlighting', function()
^ |
in {6:order} to {7:de}{5:monstr}{7:ate} |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 change; before #4 {MATCH:.*}|
]]}
@@ -249,10 +217,7 @@ describe('Buffer highlighting', function()
^a {5:longer} example |
in {6:order} to {7:de}{5:monstr}{7:ate} |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
1 line less; before #3 {MATCH:.*}|
]]}
@@ -262,9 +227,7 @@ describe('Buffer highlighting', function()
in {6:order} to {7:de}{5:monstr}{7:ate} |
{7:^combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 more line; before #2 {MATCH:.*}|
]]}
end)
@@ -276,9 +239,7 @@ describe('Buffer highlighting', function()
{7:combin}{8:ing}{9: hi}ghlights |
^in {6:order} to {7:de}{5:monstr}{7:ate} |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -288,9 +249,7 @@ describe('Buffer highlighting', function()
{9:from }{8:diff}{7:erent} sources |
a {5:longer} example |
{7:^combin}{8:ing}{9: hi}ghlights |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -300,9 +259,7 @@ describe('Buffer highlighting', function()
{7:combin}{8:ing}{9: hi}ghlights |
^in {6:order} to {7:de}{5:monstr}{7:ate} |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
2 changes; before #3 {MATCH:.*}|
]]}
@@ -312,9 +269,7 @@ describe('Buffer highlighting', function()
^in {6:order} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 change; before #2 {MATCH:.*}|
]]}
end)
@@ -327,9 +282,7 @@ describe('Buffer highlighting', function()
in {6:order} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -339,9 +292,7 @@ describe('Buffer highlighting', function()
in {6:order} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 change; before #2 {MATCH:.*}|
]]}
@@ -352,9 +303,7 @@ describe('Buffer highlighting', function()
in {6:ordAAAA^r} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{7:-- INSERT --} |
]]}
@@ -364,9 +313,7 @@ describe('Buffer highlighting', function()
in {6:ordAAAAr} t^o |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -376,9 +323,7 @@ describe('Buffer highlighting', function()
in {6:ordAAAAr} to^ {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 change; before #4 {MATCH:.*}|
]]}
@@ -388,9 +333,7 @@ describe('Buffer highlighting', function()
in {6:ord^er} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 change; before #3 {MATCH:.*}|
]]}
end)
@@ -401,10 +344,7 @@ describe('Buffer highlighting', function()
a {5:longer} example in {6:order} to {7:de}{5:monstr}{7:ate}|
{7:combin}{8:ing}{9: hi}ghlights^ {9:from }{8:diff}{7:erent} sou|
rces |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
@@ -414,9 +354,7 @@ describe('Buffer highlighting', function()
in {6:order} to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 more line; before #2 {MATCH:.*}|
]]}
end)
@@ -429,8 +367,7 @@ describe('Buffer highlighting', function()
^ to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7:-- INSERT --} |
]]}
@@ -453,8 +390,7 @@ describe('Buffer highlighting', function()
to {7:de}{5:mo^nstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
1 line less; before #3 {MATCH:.*}|
]]}
@@ -464,9 +400,7 @@ describe('Buffer highlighting', function()
in {6:order}^ to {7:de}{5:monstr}{7:ate} |
{7:combin}{8:ing}{9: hi}ghlights |
{9:from }{8:diff}{7:erent} sources |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
1 line less; before #2 {MATCH:.*}|
]]}
end)
@@ -481,24 +415,14 @@ describe('Buffer highlighting', function()
screen:expect([[
{4:three ove}{6:rlapp}{2:ing color}^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
clear_namespace(id, 0, 1)
screen:expect([[
three {6:overlapp}{2:ing color}^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end)
@@ -512,24 +436,14 @@ describe('Buffer highlighting', function()
screen:expect{grid=[[
{4:three }{6:overlapp}{2:ing color}^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
clear_namespace(id, 0, 1)
screen:expect{grid=[[
three {6:overlapp}{2:ing color}^s |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
end)
@@ -554,24 +468,14 @@ describe('Buffer highlighting', function()
screen:expect [[
{3:fooba}{2:^r} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]
clear_namespace(id, 0, -1)
screen:expect{grid=[[
fooba^r |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
@@ -590,12 +494,7 @@ describe('Buffer highlighting', function()
screen:expect [[
{3:fooba}{2:^r} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]
end)
@@ -608,12 +507,7 @@ describe('Buffer highlighting', function()
screen:expect([[
Ta {6:båten} över {2:sjön}^! |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end)
@@ -624,24 +518,14 @@ describe('Buffer highlighting', function()
add_highlight(-1, "FancyLangItem", 0, 0, 5)
screen:expect([[
fancy code in a new fancy languag^e |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
command('hi FancyLangItem guifg=red')
screen:expect([[
{10:fancy} code in a new fancy languag^e |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end)
@@ -661,8 +545,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, |
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -680,8 +563,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -692,8 +574,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -706,8 +587,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -718,8 +598,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -732,9 +611,7 @@ describe('Buffer highlighting', function()
^5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, {12:暗x事zz速野谷質結育}|
x = 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
--screen:expect([[
@@ -742,9 +619,7 @@ describe('Buffer highlighting', function()
-- ^5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
-- , 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
-- x = 4 |
- -- {1:~ }|
- -- {1:~ }|
- -- {1:~ }|
+ -- {1:~ }|*3
-- |
--]])
end)
@@ -796,8 +671,7 @@ describe('Buffer highlighting', function()
{13:5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5}|
{13:, 5, 5, 5, 5, 5, 5, } Lorem ipsum dolor s|
^x{13: = 4} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7:-- VISUAL LINE --} |
]])
@@ -808,8 +682,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
^x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -821,8 +694,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -833,8 +705,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7:-- VISUAL --} |
]])
@@ -845,8 +716,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{7:-- VISUAL --} |
]])
end)
@@ -860,8 +730,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5,{1:-$}Lorem ipsum dolor s|
x = 4{1:$} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -872,8 +741,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5,{1:-$} |
x = 4{1:$} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end)
@@ -887,8 +755,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -899,8 +766,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -912,8 +778,7 @@ describe('Buffer highlighting', function()
{14:^5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5}|
{14:, 5, 5, 5, 5, 5, 5, }Lorem ipsum dolor s|
x = 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
end)
@@ -926,8 +791,7 @@ describe('Buffer highlighting', function()
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 {12:暗x事} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -938,8 +802,7 @@ describe('Buffer highlighting', function()
5, 5, 5,{18: }5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s|
x = 4 {12:暗x事} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
end)
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua
index e4766103c2..3fddc4700a 100644
--- a/test/functional/ui/cmdline_highlight_spec.lua
+++ b/test/functional/ui/cmdline_highlight_spec.lua
@@ -182,100 +182,55 @@ describe('Command-line coloring', function()
start_prompt()
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:^ |
]])
feed('e')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:e^ |
]])
feed('cho ')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo ^ |
]])
feed('(')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}^ |
]])
feed('(')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}{RBP2:(}^ |
]])
feed('42')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}{RBP2:(}42^ |
]])
feed('))')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}{RBP2:(}42{RBP2:)}{RBP1:)}^ |
]])
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}{RBP2:(}42{RBP2:)}^ |
]])
redraw_input()
screen:expect{grid=[[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}{RBP2:(}42{RBP2:)}^ |
]], reset=true}
end)
@@ -285,12 +240,7 @@ describe('Command-line coloring', function()
start_prompt('echo')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo^ |
]])
end)
@@ -301,8 +251,7 @@ describe('Command-line coloring', function()
start_prompt('echo "«')
screen:expect{grid=[[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:echo " |
{ERR:E5405: Chunk 0 start 7 splits multibyte }|
@@ -312,8 +261,7 @@ describe('Command-line coloring', function()
feed('»')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:echo " |
{ERR:E5405: Chunk 0 start 7 splits multibyte }|
@@ -327,8 +275,7 @@ describe('Command-line coloring', function()
start_prompt('echo "«')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:echo " |
{ERR:E5406: Chunk 0 end 7 splits multibyte ch}|
@@ -355,12 +302,7 @@ describe('Command-line coloring', function()
start_prompt('e')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:e^ |
]])
eq('', exec_capture('messages'))
@@ -370,12 +312,7 @@ describe('Command-line coloring', function()
start_prompt('e')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:e^ |
]])
eq('', exec_capture('messages'))
@@ -385,12 +322,7 @@ describe('Command-line coloring', function()
start_prompt('e')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:e^ |
]])
eq('', exec_capture('messages'))
@@ -414,8 +346,7 @@ describe('Command-line coloring', function()
start_prompt('let x = "«»«»«»«»«»"')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:let x = " |
{ERR:E5405: Chunk 0 start 10 splits multibyte}|
@@ -425,12 +356,7 @@ describe('Command-line coloring', function()
feed('\n')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
|
]])
feed('\n')
@@ -443,20 +369,14 @@ describe('Command-line coloring', function()
start_prompt('echo 42')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
|
]])
screen:sleep(500)
feed('<C-c>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
: |
{ERR:E5407: Callback has thrown an exception:}|
@@ -466,23 +386,13 @@ describe('Command-line coloring', function()
redraw_input()
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo 42^ |
]])
feed('\n')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo 42 |
]])
feed('\n')
@@ -490,12 +400,7 @@ describe('Command-line coloring', function()
feed('<C-c>')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
Type :qa and pre...nter> to exit Nvim |
]])
end)
@@ -504,12 +409,7 @@ describe('Command-line coloring', function()
start_prompt('echo ("<C-v><CR><C-v><Nul><C-v><NL>")')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}"{SK:^M^@^@}"{RBP1:)}^ |
]])
end)
@@ -519,9 +419,7 @@ describe('Command-line coloring', function()
start_prompt('#')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{MSEP: }|
: |
{ERR:E5400: Callback should return list} |
@@ -533,9 +431,7 @@ describe('Command-line coloring', function()
start_prompt('#')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{MSEP: }|
: |
{ERR:E5401: List item 1 is not a List} |
@@ -547,8 +443,7 @@ describe('Command-line coloring', function()
start_prompt('+')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:+ |
{ERR:E5402: List item 1 has incorrect length:}|
@@ -561,8 +456,7 @@ describe('Command-line coloring', function()
start_prompt('+')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:+ |
{ERR:E5403: Chunk 1 start 2 not in range [1, }|
@@ -575,9 +469,7 @@ describe('Command-line coloring', function()
start_prompt('+')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{MSEP: }|
:+ |
{ERR:E5404: Chunk 1 end 3 not in range (1, 2]}|
@@ -616,12 +508,7 @@ describe('Command-line coloring', function()
start_prompt('1')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP1:1}^ |
]])
@@ -629,12 +516,7 @@ describe('Command-line coloring', function()
start_prompt('2')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP2:2}^ |
]])
@@ -642,12 +524,7 @@ describe('Command-line coloring', function()
start_prompt('3')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP3:3}^ |
]])
@@ -655,57 +532,32 @@ describe('Command-line coloring', function()
start_prompt('4')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP4:4}^ |
]])
feed('<CR>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP3:3}4^ |
]])
feed('<CR>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP2:2}34^ |
]])
feed('<CR>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:{RBP1:1}234^ |
]])
feed('<CR><CR><C-l>')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
|
]])
eq('1234', meths.get_var('out'))
@@ -763,12 +615,7 @@ describe('Ex commands coloring', function()
feed(':echo (((1)))')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:echo {RBP1:(}{RBP2:(}{RBP3:(}1{RBP3:)}{RBP2:)}{RBP1:)}^ |
]])
end)
@@ -802,8 +649,7 @@ describe('Ex commands coloring', function()
feed(':debug execute "echo 1"\n')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
Entering Debug mode. Type "cont" to con|
tinue. |
@@ -824,12 +670,7 @@ describe('Ex commands coloring', function()
feed('\n')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
|
]])
end)
@@ -838,8 +679,7 @@ describe('Ex commands coloring', function()
feed(':#x')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*2
{MSEP: }|
:# |
{ERR:Error detected while processing :} |
@@ -885,12 +725,7 @@ describe('Expressions coloring support', function()
feed(':echo <C-r>=(((1)))')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
={NPAR:(((}{NUM:1}{NPAR:)))}^ |
]])
end)
@@ -902,12 +737,7 @@ describe('Expressions coloring support', function()
feed(':<C-r>=1')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
={NUM:1}^ |
]])
end)
@@ -921,34 +751,19 @@ describe('Expressions coloring support', function()
feed('i<C-r>="«»"«»')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
={SQ:"}{SB:«»}{SQ:"}{E:«»}^ |
]])
feed('<C-c>')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
{M:-- INSERT --} |
]])
feed('<Esc>')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
|
]])
feed(':<C-\\>e"<C-v><C-x>"<C-v><C-x>')
@@ -956,35 +771,20 @@ describe('Expressions coloring support', function()
-- highlighting.
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
={SQ:"}{SB:^X}{SQ:"}{ERR:^X}^ |
]])
feed('<C-c>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
:^ |
]])
funcs.setreg('a', {'\192'})
feed('<C-r>="<C-r><C-r>a"<C-r><C-r>a"foo"')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*6
={SQ:"}{SB:<c0>}{SQ:"}{E:<c0>"}{SB:foo}{E:"}^ |
]])
end)
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index 188b9ee87b..cac070406d 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -41,9 +41,7 @@ local function test_cmdline(linegrid)
feed(':')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -54,9 +52,7 @@ local function test_cmdline(linegrid)
feed('sign')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -67,9 +63,7 @@ local function test_cmdline(linegrid)
feed('<Left>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -80,9 +74,7 @@ local function test_cmdline(linegrid)
feed('<bs>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -93,9 +85,7 @@ local function test_cmdline(linegrid)
feed('<Esc>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end)
@@ -104,9 +94,7 @@ local function test_cmdline(linegrid)
feed(':call input("input", "default")<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
prompt = "input",
@@ -117,9 +105,7 @@ local function test_cmdline(linegrid)
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end)
@@ -128,9 +114,7 @@ local function test_cmdline(linegrid)
feed(':xx<c-r>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -142,9 +126,7 @@ local function test_cmdline(linegrid)
feed('=')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -171,9 +153,7 @@ local function test_cmdline(linegrid)
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline=expectation}
@@ -181,9 +161,7 @@ local function test_cmdline(linegrid)
command("mode")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline=expectation, reset=true}
@@ -191,9 +169,7 @@ local function test_cmdline(linegrid)
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -204,9 +180,7 @@ local function test_cmdline(linegrid)
feed('<esc>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end)
@@ -215,9 +189,7 @@ local function test_cmdline(linegrid)
feed(':function Foo()<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
indent = 2,
@@ -231,9 +203,7 @@ local function test_cmdline(linegrid)
feed('line1<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
indent = 2,
@@ -248,9 +218,7 @@ local function test_cmdline(linegrid)
command("mode")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
indent = 2,
@@ -265,9 +233,7 @@ local function test_cmdline(linegrid)
feed('endfunction<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -275,9 +241,7 @@ local function test_cmdline(linegrid)
feed(':function Bar()<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
indent = 2,
@@ -291,9 +255,7 @@ local function test_cmdline(linegrid)
feed('endfunction<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -303,9 +265,7 @@ local function test_cmdline(linegrid)
feed(':make')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -374,9 +334,7 @@ local function test_cmdline(linegrid)
command("redraw!")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -389,9 +347,7 @@ local function test_cmdline(linegrid)
feed(":call inputsecret('secret:')<cr>abc123")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
prompt = "secret:",
@@ -434,9 +390,7 @@ local function test_cmdline(linegrid)
feed('<f5>(a(b)a)')
screen:expect{grid=[[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
|
]], cmdline={{
prompt = '>',
@@ -463,9 +417,7 @@ local function test_cmdline(linegrid)
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -476,9 +428,7 @@ local function test_cmdline(linegrid)
feed('<tab>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -489,9 +439,7 @@ local function test_cmdline(linegrid)
feed('<left><left>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -502,9 +450,7 @@ local function test_cmdline(linegrid)
feed('<right>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -515,9 +461,7 @@ local function test_cmdline(linegrid)
feed('a')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -543,9 +487,7 @@ local function test_cmdline(linegrid)
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -556,9 +498,7 @@ local function test_cmdline(linegrid)
feed('<tab>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -569,9 +509,7 @@ local function test_cmdline(linegrid)
feed('<left><left>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -582,9 +520,7 @@ local function test_cmdline(linegrid)
feed('<right>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -595,9 +531,7 @@ local function test_cmdline(linegrid)
feed('a')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -645,9 +579,7 @@ local function test_cmdline(linegrid)
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
firstc = ":",
@@ -663,9 +595,7 @@ local function test_cmdline(linegrid)
feed(':xa')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]], cmdline={{
content = { { "x" } },
@@ -679,9 +609,7 @@ local function test_cmdline(linegrid)
feed('<esc>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -748,26 +676,20 @@ describe('cmdline redraw', function()
feed('q:iabc<Esc>vhh')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] }|
{1::}^a{8:bc} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[Command Line] }|
{9:-- VISUAL --} |
]])
feed('<C-C>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] }|
{1::}a{8:bc} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[Command Line] }|
:^abc |
]])
@@ -778,18 +700,14 @@ describe('cmdline redraw', function()
meths.buf_set_lines(0, 0, -1, true, {"let's rock!"})
screen:expect{grid=[[
!kcor s'te^l|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
|
]]}
feed '/'
screen:expect{grid=[[
!kcor s'tel|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
^ /|
]]}
@@ -798,9 +716,7 @@ describe('cmdline redraw', function()
-- when rendered as a block so it touches the end of the text
screen:expect{grid=[[
!kcor {2:s'tel}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
^ s'tel/|
]]}
@@ -808,45 +724,35 @@ describe('cmdline redraw', function()
feed "<space>"
screen:expect{grid=[[
!kcor{2: s'tel}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
^ s'tel/|
]]}
feed "rock"
screen:expect{grid=[[
!{2:kcor s'tel}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
^ kcor s'tel/|
]]}
feed "<right>"
screen:expect{grid=[[
!{2:kcor s'tel}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
^kcor s'tel/|
]]}
feed "<left>"
screen:expect{grid=[[
!{2:kcor s'tel}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
^ kcor s'tel/|
]]}
feed "<cr>"
screen:expect{grid=[[
!{10:kcor s'te^l}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
kcor s'tel/ |
]]}
end)
@@ -865,8 +771,7 @@ describe('statusline is redrawn on entering cmdline', function()
command('set statusline=%{mode()}')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:n }|
|
]]}
@@ -874,8 +779,7 @@ describe('statusline is redrawn on entering cmdline', function()
feed(':')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:c }|
:^ |
]]}
@@ -887,8 +791,7 @@ describe('statusline is redrawn on entering cmdline', function()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:n }|
|
]]}
@@ -896,8 +799,7 @@ describe('statusline is redrawn on entering cmdline', function()
feed(';')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:c }|
:^ |
]]}
@@ -919,11 +821,7 @@ describe('statusline is redrawn on entering cmdline', function()
|
{3:c1 }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{3: }|
{4:E121: Undefined variable: doesnotex}|
{4:ist} |
@@ -936,8 +834,7 @@ describe('statusline is redrawn on entering cmdline', function()
|
{3:c2 }|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3: }|
{4:E121: Undefined variable: doesnotex}|
{4:ist} |
@@ -972,14 +869,7 @@ describe('statusline is redrawn on entering cmdline', function()
^ |
{3:n3 }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
{2:[No Name] }|
|
]]}
@@ -990,8 +880,7 @@ describe('statusline is redrawn on entering cmdline', function()
command('set statusline=')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[No Name] }|
|
]]}
@@ -1002,8 +891,7 @@ describe('statusline is redrawn on entering cmdline', function()
feed(':')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:command }|
:^ |
]]}
@@ -1014,8 +902,7 @@ describe('statusline is redrawn on entering cmdline', function()
feed(':')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:command }|
:^ |
]]}
@@ -1104,17 +991,12 @@ describe('cmdheight=0', function()
command("set redrawdebug=invalid cmdheight=0 noruler laststatus=0")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
feed(":resize -1<CR>")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
assert_alive()
@@ -1124,8 +1006,7 @@ describe('cmdheight=0', function()
command("set cmdheight=1 noruler laststatus=2")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
|
]]}
@@ -1135,9 +1016,7 @@ describe('cmdheight=0', function()
command("set cmdheight=0 noruler laststatus=2")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] }|
]]}
end)
@@ -1146,10 +1025,7 @@ describe('cmdheight=0', function()
command("set cmdheight=0 ruler laststatus=0")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -1158,10 +1034,7 @@ describe('cmdheight=0', function()
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={}}
feed('<Esc>')
eq(0, eval('&cmdheight'))
@@ -1172,10 +1045,7 @@ describe('cmdheight=0', function()
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={}}
feed('<Esc>')
eq(0, eval('&cmdheight'))
@@ -1186,9 +1056,7 @@ describe('cmdheight=0', function()
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3:-- INSERT --} |
]]}
feed('<Esc>')
@@ -1200,19 +1068,14 @@ describe('cmdheight=0', function()
feed(':')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:^ |
]]}
eq(0, eval('&cmdheight'))
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={}}
eq(0, eval('&cmdheight'))
end)
@@ -1231,10 +1094,7 @@ describe('cmdheight=0', function()
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={}}
eq(0, eval('&cmdheight'))
end)
@@ -1253,24 +1113,21 @@ describe('cmdheight=0', function()
screen:expect{grid=[[
{3:foo }|
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
]]}
feed(':')
screen:expect{grid=[[
{3:foo }|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
:^ |
]]}
feed('<Esc>')
screen:expect{grid=[[
{3:foo }|
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
]], showmode={}}
eq(0, eval('&cmdheight'))
@@ -1283,18 +1140,12 @@ describe('cmdheight=0', function()
feed('qq')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
feed('q')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], unchanged=true}
end)
@@ -1303,27 +1154,21 @@ describe('cmdheight=0', function()
feed('ifoo<ESC>')
screen:expect{grid=[[
fo^o |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] [+] }|
]]}
feed(':%s/foo/bar/gc<CR>')
screen:expect{grid=[[
{6:foo} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{5:replace wi...q/l/^E/^Y)?}^ |
]]}
feed('y')
screen:expect{grid=[[
^bar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] [+] }|
]]}
@@ -1342,19 +1187,13 @@ describe('cmdheight=0', function()
feed('iaabbaa<esc>/aa<cr>')
screen:expect{grid=[[
{7:^aa}bb{7:aa} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
feed('<f3>')
screen:expect{grid=[[
^aabbaa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -1364,10 +1203,7 @@ describe('cmdheight=0', function()
-- doesn't crash while not displaying silent! error message
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -1377,17 +1213,10 @@ describe('cmdheight=0', function()
meths.buf_set_lines(0, 0, -1, true, {'p'})
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*5
## grid 2
^p |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
@@ -1396,17 +1225,11 @@ describe('cmdheight=0', function()
feed '/p'
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*4
[3:-------------------------]|
## grid 2
{6:p} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
/p^ |
]], win_viewport={
@@ -1423,8 +1246,7 @@ describe('cmdheight=0', function()
screen:expect([[
{3:c :}|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
:^ |
]])
feed('echo')
@@ -1432,16 +1254,14 @@ describe('cmdheight=0', function()
screen:expect([[
{3:c :}|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
:echo^ |
]])
command('redrawstatus')
screen:expect([[
{3:c :echo}|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
:echo^ |
]])
end)
@@ -1452,28 +1272,17 @@ describe('cmdheight=0', function()
command('vsplit')
screen:expect([[
^ │ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*8
]])
feed(':')
command('split')
feed('<Esc>')
screen:expect([[
^ │ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
{2:[No Name] }│{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
]])
command('resize 2')
screen:expect([[
@@ -1481,25 +1290,17 @@ describe('cmdheight=0', function()
{1:~ }│{1:~ }|
{2:[No Name] }│{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*5
]])
feed(':')
command('wincmd =')
feed('<Esc>')
screen:expect([[
^ │ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
{2:[No Name] }│{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
]])
end)
@@ -1508,10 +1309,7 @@ describe('cmdheight=0', function()
feed('d')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]])
assert_alive()
end)
@@ -1521,33 +1319,27 @@ describe('cmdheight=0', function()
command('resize +1')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
|
]])
command('set cmdheight=0')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] }|
]]}
command('resize -1')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] }|
|
]]}
command('resize +1')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] }|
]])
end)
@@ -1559,9 +1351,7 @@ describe('cmdheight=0', function()
command('resize -1')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3:[No Name] }|
]])
meths.input_mouse('left', 'press', '', 0, 6, 10)
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua
index 7bec5eaac6..2b8dc0fe19 100644
--- a/test/functional/ui/cursor_spec.lua
+++ b/test/functional/ui/cursor_spec.lua
@@ -186,9 +186,7 @@ describe('ui/cursor', function()
command("echo 'test'")
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
test |
]], condition=function()
eq(nil, screen._mode_info)
@@ -255,9 +253,7 @@ describe('ui/cursor', function()
end
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
test |
]], condition=function()
eq(expected_mode_info, screen._mode_info)
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index 925243054c..f1290bbdca 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -212,9 +212,7 @@ describe('decorations providers', function()
{15:i} am not capitalized. |
I am a {16:speling} {16:mistakke}. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -227,9 +225,7 @@ describe('decorations providers', function()
{15:^i} am not capitalized. |
I am a {16:speling} {16:mistakke}. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -242,9 +238,7 @@ describe('decorations providers', function()
{15:i} am not capitalized. |
I am a {16:^speling} {16:mistakke}. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -257,9 +251,7 @@ describe('decorations providers', function()
i am not capitalized. |
I am a ^speling mistakke. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -269,9 +261,7 @@ describe('decorations providers', function()
i am not capitalized. |
I am a ^speling mistakke. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{17:search hit BOTTOM, continuing at TOP} |
]]}
command('echo ""')
@@ -284,9 +274,7 @@ describe('decorations providers', function()
{15:i} am not capitalized. |
I am a {16:^speling} {16:mistakke}. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -296,9 +284,7 @@ describe('decorations providers', function()
{15:i} am not capitalized. |
I am a {16:speling} {16:^mistakke}. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -787,8 +773,7 @@ describe('extmark decorations', function()
colpos = colpos+1 {25: } |
end {25: } |
end {25: } |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
meths.buf_set_extmark(0, ns, 4, 0, { virt_text={{''}}, virt_text_pos='eol'})
@@ -827,8 +812,7 @@ describe('extmark decorations', function()
{2:|} {1:|} cofoo{3:bar}{4:!!}olpos+1 |
end |
end |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -857,8 +841,7 @@ describe('extmark decorations', function()
s+1 |
end |
end |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -892,8 +875,7 @@ describe('extmark decorations', function()
s+1 |
end -- ???????{4:口 }|
end -- {4:口口} 古古{4:口口 }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -1125,8 +1107,7 @@ describe('extmark decorations', function()
colpos {5:=} colpos{5:+}{13:1} |
{5:end} |
{5:end} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -1152,8 +1133,7 @@ describe('extmark decorations', function()
colpos {5:=} colpos{5:+}{13:1} |
{5:end} |
{5:end} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -1171,8 +1151,7 @@ describe('extmark decorations', function()
colpos {5:=} colpos{5:+}{13:1} |
{5:end} |
{5:end} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{24:-- VISUAL LINE --} |
]]}
@@ -1190,8 +1169,7 @@ describe('extmark decorations', function()
colpos {5:=} colpos{5:+}{13:1} |
{5:end} |
{5:end} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{24:-- VISUAL LINE --} |
]]}
end)
@@ -1224,8 +1202,7 @@ describe('extmark decorations', function()
colpos = colpos+1 |
end |
end |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -1262,8 +1239,7 @@ describe('extmark decorations', function()
colpos = colpos+1 |
end |
end |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
: |
]]}
@@ -1465,8 +1441,7 @@ describe('extmark decorations', function()
screen:expect{grid=[[
^aaaaaaaaaaaaaaaaaaaaaaaaa│ |
aaaaaaaaaaaaaaaaaaaaaaaaa│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{41:[No Name] [+] }{40:[No Name] }|
|
]]}
@@ -1583,8 +1558,7 @@ describe('extmark decorations', function()
meths.buf_set_extmark(0, ns, 0, 0, { virt_lines = { vt, vt } })
screen:expect{grid=[[
{2:a}{3:b}{4:c}{5:d}{6:X}#^# {2:a}{3:b}{4:c}{5:d}{6:X} {2:a}{3:b}{4:c}{5:d}{6:X}|
- {2:a}{3:b}{4:c}{5:d}{6:X} |
- {2:a}{3:b}{4:c}{5:d}{6:X} |
+ {2:a}{3:b}{4:c}{5:d}{6:X} |*2
{1:~ }|
|
]]}
@@ -1597,19 +1571,7 @@ describe('extmark decorations', function()
]]
screen:expect{grid=[[
^ a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*13
|
]]}
@@ -1619,19 +1581,7 @@ describe('extmark decorations', function()
]]
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*13
|
]]}
assert_alive()
@@ -1645,8 +1595,7 @@ describe('extmark decorations', function()
screen:expect([[
{26:X} |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
command('set conceallevel=1')
@@ -1663,8 +1612,7 @@ describe('extmark decorations', function()
screen:expect([[
{26:ẍ̲} |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
command('set conceallevel=1')
@@ -1675,8 +1623,7 @@ describe('extmark decorations', function()
screen:expect{grid=[[
{26:x} |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
end)
@@ -1690,16 +1637,14 @@ describe('extmark decorations', function()
screen:expect([[
{26:?}bar |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
command('let &conceallevel=2')
screen:expect([[
bar |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end)
@@ -1754,19 +1699,10 @@ describe('extmark decorations', function()
screen:expect{grid=[[
{27: } |
- XXX |
- XXX |
+ XXX |*2
^XXX HELLO |
- XXX |
- XXX |
- XXX |
- XXX |
- XXX |
- XXX |
- XXX |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ XXX |*7
+ {1:~ }|*3
|
]]}
@@ -1942,23 +1878,17 @@ describe('extmark decorations', function()
meths.buf_set_extmark(0, ns, 0, 0, {end_row = 5, end_col = 0, hl_group = 'Underlined'})
screen:expect([[
{28:^asdf} |
- {28: asdf} |
- {28: asdf} |
- {28: asdf} |
+ {28: asdf} |*3
{28:asdf} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
feed('<C-V>Gll')
screen:expect([[
{29:asd}{28:f} |
- {29: }{28: asdf} |
- {29: }{28: asdf} |
- {29: }{28: asdf} |
+ {29: }{28: asdf} |*3
{29:as}{28:^df} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{24:-- VISUAL BLOCK --} |
]])
end)
@@ -1984,8 +1914,7 @@ describe('extmark decorations', function()
colpos = colpos+1 |
end |
end |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed'5<c-e>'
@@ -1997,13 +1926,7 @@ describe('extmark decorations', function()
colpos = colpos+1 |
end |
end |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
|
]]}
@@ -2016,13 +1939,7 @@ describe('extmark decorations', function()
colpos = colpos+1 |
end |
end |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
|
]]}
end)
@@ -2504,8 +2421,7 @@ describe('decorations: inline virtual text', function()
{10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:X} |
bbbbbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('j')
@@ -2515,8 +2431,7 @@ describe('decorations: inline virtual text', function()
{10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:X} |
bbbbbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('j')
@@ -2526,8 +2441,7 @@ describe('decorations: inline virtual text', function()
{10:^XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:X} |
bbbbbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('j')
@@ -2537,8 +2451,7 @@ describe('decorations: inline virtual text', function()
{10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:X} |
bbbbb^b |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('0<C-V>2l2k')
@@ -2548,8 +2461,7 @@ describe('decorations: inline virtual text', function()
{10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:X} |
{7:bbb}bbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{8:-- VISUAL BLOCK --} |
]]}
feed([[<Esc>/aaa\n\%V<CR>]])
@@ -2559,8 +2471,7 @@ describe('decorations: inline virtual text', function()
{10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:X} |
bbbbbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{16:search hit BOTTOM, continuing at TOP} |
]]}
feed('3ggic')
@@ -2570,8 +2481,7 @@ describe('decorations: inline virtual text', function()
c{10:^XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:XX} |
bbbbbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{8:-- INSERT --} |
]]}
feed([[<Esc>/aaa\nc\%V<CR>]])
@@ -2581,8 +2491,7 @@ describe('decorations: inline virtual text', function()
{12:c}{10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}|
{10:XX} |
bbbbbb |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{16:search hit BOTTOM, continuing at TOP} |
]]}
end)
@@ -3052,13 +2961,11 @@ describe('decorations: inline virtual text', function()
feed('gg0')
screen:expect{grid=[[
{9:^000 }│{5:9}{14:test}{9:000 }|
- {9:000 }│{9:000}{5:9}{9: }|
- {9:000 }│{9:000}{5:9}{9: }|
+ {9:000 }│{9:000}{5:9}{9: }|*2
{9:000 }│{5:9}{9:000 }|
{9:000 }│{9:000}{5:9}{9: }|
{9:aaabbb }│{14:!}{9:aaa}{5: }{9:bbb }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{15:[No Name] [+] }{13:[No Name] [+] }|
|
]]}
@@ -3066,13 +2973,11 @@ describe('decorations: inline virtual text', function()
feed('zl')
screen:expect{grid=[[
{9:000 }│{14:test}{9:000 }|
- {9:000 }│{9:00}{5:9}{9: }|
- {9:000 }│{9:00}{5:9}{9: }|
+ {9:000 }│{9:00}{5:9}{9: }|*2
{9:000 }│{9:000 }|
{9:000 }│{9:00}{5:9}{9: }|
{9:aaabbb }│{9:aaa}{5: }{9:bb^b }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
{13:[No Name] [+] }{15:[No Name] [+] }|
|
]]}
@@ -3141,16 +3046,14 @@ describe('decorations: inline virtual text', function()
screen:expect{grid=[[
{18:^+-- 2 lines: aaaaa·······························································}|
{17:+-- 2 lines: ccccc·······························································}|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('j')
screen:expect{grid=[[
{17:+-- 2 lines: aaaaa·······························································}|
{18:^+-- 2 lines: ccccc·······························································}|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
end)
@@ -3161,24 +3064,19 @@ describe('decorations: inline virtual text', function()
screen:expect{grid=[[
^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
b |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
command('set nowrap')
screen:expect{grid=[[
^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
feed('82i0<Esc>0')
screen:expect{grid=[[
^0000000000000000000000000000000000000000000000000000000000000000000000000000000000|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
command('set wrap')
@@ -3416,26 +3314,20 @@ describe('decorations: inline virtual text', function()
{1:+}23123123123123123123123|
{1:+}12312312312312312312312|
{1:+}3^a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
: |
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}12312312312312312312312|
{1:+}3^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
: |
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}3^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
: |
]]}
feed('zbi')
@@ -3480,26 +3372,20 @@ describe('decorations: inline virtual text', function()
{1:+}31231231231231231231231|
{1:+}23123123123123123123123|
{1:+}^a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
: |
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}23123123123123123123123|
{1:+}^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
: |
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
: |
]]}
feed('023x$')
@@ -3516,26 +3402,20 @@ describe('decorations: inline virtual text', function()
{1:+}31231231231231231231231|
{1:+}23123123123123123123123|
{1:+}^a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
: |
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}23123123123123123123123|
{1:+}^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
: |
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
: |
]]}
feed('zbi')
@@ -3552,8 +3432,7 @@ describe('decorations: inline virtual text', function()
1 ^12312312312312312312312312|
{1:+}31231231231231231231231|
{1:+}23123123123123123123a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{8:-- INSERT --} |
]]}
feed('<Esc>')
@@ -3561,26 +3440,20 @@ describe('decorations: inline virtual text', function()
1 12312312312312312312312312|
{1:+}31231231231231231231231|
{1:+}23123123123123123123^a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}31231231231231231231231|
{1:+}23123123123123123123^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:+}23123123123123123123^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
feed('zbx')
@@ -3588,8 +3461,7 @@ describe('decorations: inline virtual text', function()
1 ^12312312312312312312312312|
{1:+}31231231231231231231231|
{1:+}23123123123123123123 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('26ia<Esc>a')
@@ -3645,26 +3517,20 @@ describe('decorations: inline virtual text', function()
{1:<<<}212121212121212121212121212|
1212121212121212121212121212{1:<-}|
{1:----->}^a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:<<<}2121212121212121212121212{1:<-}|
{1:----->}^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:<<<-->}^a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
feed('zbh')
@@ -3708,26 +3574,20 @@ describe('decorations: inline virtual text', function()
{1:<<<}212121212121212121212121212|
1212121212121212121212121212 |
^ a |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:<<<}2121212121212121212121212 |
^ a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
feed('<C-E>')
screen:expect{grid=[[
{1:<<<} ^ a |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
end)
@@ -3744,8 +3604,7 @@ describe('decorations: inline virtual text', function()
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
{1:+}bbbbbbbbbb |
{1:+}cccccccccccccccccccccccccccccccccccccccccccc^c |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
feed('05x$')
@@ -3753,8 +3612,7 @@ describe('decorations: inline virtual text', function()
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb|
{1:+}bbbbb |
{1:+}cccccccccccccccccccccccccccccccccccccccccccc^c |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
end)
@@ -4158,9 +4016,7 @@ if (h->n_buckets < new_n_buckets) { // expand
^char *new_vals = krealloc( h->vals_buf, new_n_|
buckets * val_size); |
Grugg |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -4168,31 +4024,14 @@ if (h->n_buckets < new_n_buckets) { // expand
screen:expect{grid=[[
^ |
Grugg |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*9
--No lines in buffer-- |
]]}
meths.buf_del_extmark(0, ns, id)
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
--No lines in buffer-- |
]]}
end)
@@ -4205,15 +4044,7 @@ if (h->n_buckets < new_n_buckets) { // expand
screen:expect([[
fo^o |
{6:bar} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*9
|
]])
end)
@@ -4325,8 +4156,7 @@ if (h->n_buckets < new_n_buckets) { // expand
they |
{7:hatin'} |
^hh |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]]}
@@ -4335,9 +4165,7 @@ if (h->n_buckets < new_n_buckets) { // expand
they |
{7:hatin'} |
^hh |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -4345,21 +4173,14 @@ if (h->n_buckets < new_n_buckets) { // expand
screen:expect{grid=[[
{7:hatin'} |
^hh |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
feed '<c-e>'
screen:expect{grid=[[
^hh |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]]}
end)
@@ -4560,9 +4381,7 @@ if (h->n_buckets < new_n_buckets) { // expand
line3 |
line4 |
line^5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
@@ -4576,10 +4395,7 @@ if (h->n_buckets < new_n_buckets) { // expand
line3 |
line4 |
line5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
@@ -4593,9 +4409,7 @@ if (h->n_buckets < new_n_buckets) { // expand
line3 |
line4 |
line5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end)
@@ -4639,9 +4453,7 @@ l5
{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4659,9 +4471,7 @@ l5
{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4678,9 +4488,7 @@ l5
{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
@@ -4700,9 +4508,7 @@ l5
{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4721,9 +4527,7 @@ l5
S2l4 |
S2l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4741,9 +4545,7 @@ l5
S1S2l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4763,9 +4565,7 @@ l5
S2{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4784,9 +4584,7 @@ l5
{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4810,9 +4608,7 @@ l5
{1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4837,9 +4633,7 @@ l5
S3{1: }l4 |
S3{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]}
end)
@@ -4857,11 +4651,7 @@ l5
X {1: }l4 |
{1: }l5 |
{1: } |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
|
]]}
end)
@@ -4886,14 +4676,7 @@ l5
end
screen:expect{grid=[[
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
- W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |
+ W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |*8
W X Y Z {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:^h} |
|
]]}
@@ -5042,10 +4825,7 @@ describe('decorations: virt_text', function()
{1: 2 }hello {2:hello} |
{1: 1 }hello |
{1:5 }helloVIRTUA^L |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
|
]]}
@@ -5058,10 +4838,7 @@ describe('decorations: virt_text', function()
{1: 1 }hello {2:hello} |
{1:4 }hell^o |
{1: 1 }helloVIRTUAL |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
|
]]}
end)
@@ -5071,14 +4848,9 @@ describe('decorations: virt_text', function()
screen:expect{grid=[[
|
- hello |
- hello |
- hello |
- hello |
+ hello |*4
hell^o |
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
|
]]}
@@ -5089,14 +4861,9 @@ describe('decorations: virt_text', function()
screen:expect{grid=[[
|
- hello |
- hello |
- hello |
- hello |
+ hello |*4
hell^o world |
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
|
]]}
end)
diff --git a/test/functional/ui/diff_spec.lua b/test/functional/ui/diff_spec.lua
index bcd1fc4090..71bbb2f003 100644
--- a/test/functional/ui/diff_spec.lua
+++ b/test/functional/ui/diff_spec.lua
@@ -68,12 +68,7 @@ describe('Diff mode screen', function()
{1: }5 │{1: }5 |
{1: }6 │{1: }6 |
{1:+ }{5:+-- 4 lines: 7···}│{1:+ }{5:+-- 4 lines: 7··}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -88,12 +83,7 @@ describe('Diff mode screen', function()
{1: }5 │{1: }5 |
{1: }6 │{1: }6 |
{1:+ }{5:+-- 4 lines: 7···}│{1:+ }{5:+-- 4 lines: 7··}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -114,12 +104,7 @@ describe('Diff mode screen', function()
{1: }5 │{1: }5 |
{1: }6 │{1: }6 |
{1:+ }{5:+-- 4 lines: 7···}│{1:+ }{5:+-- 4 lines: 7··}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -134,12 +119,7 @@ describe('Diff mode screen', function()
{1: }5 │{1: }5 |
{1: }6 │{1: }6 |
{1:+ }{5:+-- 4 lines: 7···}│{1:+ }{5:+-- 4 lines: 7··}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -160,12 +140,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{2:------------------}│{1: }{4:11 }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -180,12 +155,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{2:------------------}│{1: }{4:11 }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -219,12 +189,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{4:11 }│{1: }{2:-----------------}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -239,12 +204,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{4:11 }│{1: }{2:-----------------}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -282,8 +242,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{4:11 }│{1: }{2:-----------------}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*2
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -302,8 +261,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{4:11 }│{1: }{2:-----------------}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*2
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -328,8 +286,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{2:------------------}│{1: }{4:11 }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*2
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -348,8 +305,7 @@ describe('Diff mode screen', function()
{1: }9 │{1: }9 |
{1: }10 │{1: }10 |
{1: }{2:------------------}│{1: }{4:11 }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*2
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -578,11 +534,7 @@ int main(int argc, char **argv)
{1: }{2:------------------}│{1: }{4: values.each do }|
{1: } v.finalize │{1: } v.finalize |
{1: } end │{1: } end |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*5
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=internal,filler |
]])
@@ -601,11 +553,7 @@ int main(int argc, char **argv)
{1: } values.each do |│{1: } values.each do |
{1: } v.finalize │{1: } v.finalize |
{1: } end │{1: } end |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*5
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
|
]])
@@ -625,11 +573,7 @@ int main(int argc, char **argv)
{1: } values.each do |│{1: } values.each do |
{1: } v.finalize │{1: } v.finalize |
{1: } end │{1: } end |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*5
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
: |
]])
@@ -644,19 +588,7 @@ int main(int argc, char **argv)
feed(':set diffopt=filler<cr>')
screen:expect([[
{1:+ }{5:^+-- 10 lines: 1···}│{1:+ }{5:+-- 10 lines: 1··}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*13
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -664,19 +596,7 @@ int main(int argc, char **argv)
feed(':set diffopt+=internal<cr>')
screen:expect([[
{1:+ }{5:^+-- 10 lines: 1···}│{1:+ }{5:+-- 10 lines: 1··}|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*13
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -690,19 +610,7 @@ int main(int argc, char **argv)
feed(':set diffopt=filler<cr>')
screen:expect([[
{1:- }^ │{1:- } |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*13
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler |
]])
@@ -710,19 +618,7 @@ int main(int argc, char **argv)
feed(':set diffopt+=internal<cr>')
screen:expect([[
{1:- }^ │{1:- } |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*13
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -738,17 +634,7 @@ int main(int argc, char **argv)
{1: }^a │{1: }A |
{1: }b │{1: }b |
{1: }{9:cd }│{1: }{9:cD}{8:e}{9: }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler,icase |
]])
@@ -758,17 +644,7 @@ int main(int argc, char **argv)
{1: }^a │{1: }A |
{1: }b │{1: }b |
{1: }{9:cd }│{1: }{9:cD}{8:e}{9: }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=internal |
]])
@@ -795,12 +671,7 @@ int main(int argc, char **argv)
{1: } return 0; │{1: } return 0; |
{1: }{2:------------------}│{1: }{4: } }|
{1: }} │{1: }} |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler,iwhite |
]])
@@ -818,12 +689,7 @@ int main(int argc, char **argv)
{1: } return 0; │{1: } return 0; |
{1: }{2:------------------}│{1: }{4: } }|
{1: }} │{1: }} |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=filler,iwhite,internal |
]])
@@ -842,19 +708,12 @@ int main(int argc, char **argv)
feed(':set diffopt=internal,filler,iblank<cr>')
screen:expect([[
{1: }^a │{1: }a |
- {1: }{4: }│{1: }{2:-----------------}|
- {1: }{4: }│{1: }{2:-----------------}|
+ {1: }{4: }│{1: }{2:-----------------}|*2
{1: }cd │{1: }cd |
{1: }ef │{1: } |
{1: }{8:xxx}{9: }│{1: }ef |
{6:~ }│{1: }{8:yyy}{9: }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*7
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=internal,filler,iblank |
]])
@@ -871,14 +730,7 @@ int main(int argc, char **argv)
{1: }cd │{1: }ef |
{1: }ef │{1: }{8:yyy}{9: }|
{1: }{8:xxx}{9: }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*8
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
: |
]])
@@ -895,14 +747,7 @@ int main(int argc, char **argv)
{1: }cd │{1: }ef |
{1: }ef │{1: }{8:yyy}{9: }|
{1: }{8:xxx}{9: }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*8
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
: |
]])
@@ -919,14 +764,7 @@ int main(int argc, char **argv)
{1: }cd │{1: }ef |
{1: }ef │{1: }{8:yyy}{9: }|
{1: }{8:xxx}{9: }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*8
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
: |
]])
@@ -953,12 +791,7 @@ int main(int argc, char **argv)
{1: }foo │{1: }foo |
{1: }{2:------------------}│{1: }{4: }|
{1: }bar │{1: }bar |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
: |
]])
@@ -977,12 +810,7 @@ int main(int argc, char **argv)
{1: }foo │{1: }foo |
{1: }{2:------------------}│{1: }{4: }|
{1: }bar │{1: }bar |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
: |
]])
@@ -1116,9 +944,7 @@ int main(int argc, char **argv)
{1: } ui.setupUI(Mai│{1: } ui.setupUI(Ma|
{1: } MainWindow.sho│{1: } MainWindow.sh|
{1: } sys.exit(app.e│{1: } sys.exit(app.|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*3
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt=internal,filler |
]])
@@ -1137,9 +963,7 @@ int main(int argc, char **argv)
{1: } ui.setupUI(Mai│{1: } ui.setupUI(Ma|
{1: } MainWindow.sho│{1: } MainWindow.sh|
{1: } ^sys.exit(app.e│{1: } sys.exit(app.|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*3
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=linematch:20 |
]])
@@ -1163,17 +987,7 @@ ccca]]
{1: }^DDD │{1: }DDD |
{1: }{2:------------------}│{1: }{4:AAA }|
{1: }{8:_a}{9:a }│{1: }{8:ccc}{9:a }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
|
]])
@@ -1182,17 +996,7 @@ ccca]]
{1: }^DDD │{1: }DDD |
{1: }{8:_}{9:aa }│{1: }{8:A}{9:AA }|
{1: }{2:------------------}│{1: }{4:ccca }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=icase |
]])
@@ -1216,17 +1020,7 @@ AAAB]]
{1: }^BB │{1: }BB |
{1: }{9: AA}{8:A}{9: }│{1: }{9: AA}{8:B}{9: }|
{1: }{2:------------------}│{1: }{4:AAAB }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
|
]]}
@@ -1235,17 +1029,7 @@ AAAB]]
{1: }^BB │{1: }BB |
{1: }{2:------------------}│{1: }{4: AAB }|
{1: }{9: AAA }│{1: }{9:AAA}{8:B}{9: }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:<onal-diff-screen-1 }{3:<l-diff-screen-1.2 }|
:set diffopt+=iwhiteall |
]]}
@@ -1267,12 +1051,7 @@ AAAB]]
{6:~ }│{6:~ }|
{3:<onal-diff-screen-1 <l-diff-screen-1.2 }|
^ |
- {6:~ }|
- {6:~ }|
- {6:~ }|
- {6:~ }|
- {6:~ }|
- {6:~ }|
+ {6:~ }|*6
{7:[No Name] }|
:e |
]]}
@@ -1287,12 +1066,7 @@ AAAB]]
{6:~ }│{6:~ }|
{3:<-diff-screen-1 [+] <l-diff-screen-1.2 }|
^ |
- {6:~ }|
- {6:~ }|
- {6:~ }|
- {6:~ }|
- {6:~ }|
- {6:~ }|
+ {6:~ }|*6
{7:[No Name] }|
:e |
]]}
@@ -1317,8 +1091,7 @@ AAAB]]
ccc |
|
xx |
- {6:~ }|
- {6:~ }|
+ {6:~ }|*2
{7:Xtest-functional-diff-screen-1 }|
:e |
]]}
@@ -1337,8 +1110,7 @@ AAAB]]
ccc |
|
xx |
- {6:~ }|
- {6:~ }|
+ {6:~ }|*2
{7:Xtest-functional-diff-screen-1 [+] }|
:e |
]]}
@@ -1387,8 +1159,7 @@ it('win_update redraws lines properly', function()
command("windo 1")
screen:expect{grid=[[
{13: }{16:-----------------------}│{13: }{15:^1 }|
- {13: }{16:-----------------------}│{13: }{15: }|
- {13: }{16:-----------------------}│{13: }{15: }|
+ {13: }{16:-----------------------}│{13: }{15: }|*2
{13: }2 │{13: }2 |
{13: }{17:2}{18:a }│{13: }{17:1}{18:a }|
{13: }{15:2b }│{13: }{16:----------------------}|
@@ -1445,8 +1216,7 @@ it('diff updates line numbers below filler lines', function()
{1: }a │{11: 1 }a |
{1: }a │{11: 2 }a |
{1: }{8:x}{9: }│{11: 3 }{8:y}{9: }|
- {1: }{4:x }│{11: }{2:----------------}|
- {1: }{4:x }│{11: }{2:----------------}|
+ {1: }{4:x }│{11: }{2:----------------}|*2
{1: }b │{11: 4 }b |
{1: }b │{11: 5 }b |
{1: }b │{11: 6 }b |
@@ -1462,8 +1232,7 @@ it('diff updates line numbers below filler lines', function()
{1: }a │{10:2 }^a |
{1: }a │{11: 1 }a |
{1: }{8:x}{9: }│{11: 2 }{8:y}{9: }|
- {1: }{4:x }│{11: }{2:----------------}|
- {1: }{4:x }│{11: }{2:----------------}|
+ {1: }{4:x }│{11: }{2:----------------}|*2
{1: }b │{11: 3 }b |
{1: }b │{11: 4 }b |
{1: }b │{11: 5 }b |
@@ -1479,8 +1248,7 @@ it('diff updates line numbers below filler lines', function()
{1: }a │{11: 1 }a |
{1: }a │{10:3 }^a |
{1: }{8:x}{9: }│{11: 1 }{8:y}{9: }|
- {1: }{4:x }│{11: }{2:----------------}|
- {1: }{4:x }│{11: }{2:----------------}|
+ {1: }{4:x }│{11: }{2:----------------}|*2
{1: }b │{11: 2 }b |
{1: }b │{11: 3 }b |
{1: }b │{11: 4 }b |
@@ -1525,14 +1293,7 @@ it('Align the filler lines when changing text in diff mode', function()
{1: }13 │{1: }13 |
{1: }14 │{1: }14 |
{1:- }1^5 │{1:- }15 |
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
+ {7:~ }│{7:~ }|*8
{8:[No Name] [+] }{3:[No Name] [+] }|
|
]]}
@@ -1548,14 +1309,7 @@ it('Align the filler lines when changing text in diff mode', function()
{1: }13 │{1: }13 |
{1: }14 │{1: }14 |
{1: }{5:15}{6:^x}{5: }│{1: }{5:15 }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
+ {7:~ }│{7:~ }|*8
{8:[No Name] [+] }{3:[No Name] [+] }|
|
]]}
@@ -1571,14 +1325,7 @@ it('Align the filler lines when changing text in diff mode', function()
{1: }13 │{1: }13 |
{1: }14 │{1: }14 |
{1: }{5:15}{6:x}{5: }│{1: }{5:15}{6:^y}{5: }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
+ {7:~ }│{7:~ }|*8
{3:[No Name] [+] }{8:[No Name] [+] }|
|
]]}
@@ -1594,10 +1341,7 @@ it("diff mode doesn't restore invalid 'foldcolumn' value #21647", function()
command('diffsplit | bd')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
eq('0', meths.get_option_value('foldcolumn', {}))
@@ -1636,17 +1380,7 @@ it('diff mode works properly if file contains NUL bytes vim-patch:8.2.3925', fun
{1: }{5:E}{4: }│{1: }{5:e}{4: }|
{1: }f │{1: }f |
{1: }g │{1: }g |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{8:[No Name] [+] }{2:[No Name] [+] }|
|
]])
@@ -1662,17 +1396,7 @@ it('diff mode works properly if file contains NUL bytes vim-patch:8.2.3925', fun
{1: }E │{1: }e |
{1: }f │{1: }f |
{1: }g │{1: }g |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{8:[No Name] [+] }{2:[No Name] [+] }|
|
]])
@@ -1688,17 +1412,7 @@ it('diff mode works properly if file contains NUL bytes vim-patch:8.2.3925', fun
{1: }{5:E}{4: }│{1: }{5:e}{4: }|
{1: }f │{1: }f |
{1: }g │{1: }g |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{8:[No Name] [+] }{2:[No Name] [+] }|
|
]])
@@ -1714,17 +1428,7 @@ it('diff mode works properly if file contains NUL bytes vim-patch:8.2.3925', fun
{1: }E │{1: }e |
{1: }f │{1: }f |
{1: }g │{1: }g |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{8:[No Name] [+] }{2:[No Name] [+] }|
|
]])
@@ -1751,11 +1455,9 @@ it("diff mode draws 'breakindent' correctly after filler lines", function()
screen:expect([[
{1: }a │{1: }a |
{1: }{2:b }│{1: }{3:--------------------}|
- {1: } cccccccccccccccccc│{1: } cccccccccccccccccc|
- {1: } cccccccccccccccccc│{1: } cccccccccccccccccc|
+ {1: } cccccccccccccccccc│{1: } cccccccccccccccccc|*2
{1: } cccccccccccccc │{1: } ccccccccccccc^c |
- {4:~ }│{4:~ }|
- {4:~ }│{4:~ }|
+ {4:~ }│{4:~ }|*2
|
]])
end)
diff --git a/test/functional/ui/embed_spec.lua b/test/functional/ui/embed_spec.lua
index 5917c4fccc..072c9e89ce 100644
--- a/test/functional/ui/embed_spec.lua
+++ b/test/functional/ui/embed_spec.lua
@@ -38,10 +38,7 @@ local function test_embed(ext_linegrid)
it('can display errors', function()
startup('--cmd', 'echoerr invalid+')
screen:expect([[
- |
- |
- |
- |
+ |*4
{6: }|
{7:Error detected while processing pre-vimrc command line:} |
{7:E121: Undefined variable: invalid} |
@@ -51,12 +48,7 @@ local function test_embed(ext_linegrid)
feed('<cr>')
screen:expect([[
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*6
|
]])
end)
@@ -67,9 +59,7 @@ local function test_embed(ext_linegrid)
end
startup('--cmd', 'echoerr "foo"', '--cmd', 'color default', '--cmd', 'echoerr "bar"')
screen:expect([[
- |
- |
- |
+ |*3
{9: }|
{7:Error detected while processing pre-vimrc command line:} |
{7:foo} |
@@ -81,9 +71,7 @@ local function test_embed(ext_linegrid)
it("doesn't erase output when setting Normal colors", function()
startup('--cmd', 'echoerr "foo"', '--cmd', 'hi Normal guibg=Green', '--cmd', 'echoerr "bar"')
screen:expect{grid=[[
- |
- |
- |
+ |*3
{6: }|
{7:Error detected while processing pre-vimrc command line:} |
{7:foo} |
@@ -122,11 +110,7 @@ describe('--embed UI', function()
screen:expect{grid=[[
^hello nvim |
from external input |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]]}
@@ -136,10 +120,7 @@ describe('--embed UI', function()
hello nvim |
^ |
from external input |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:-- INSERT --} |
]]}
end)
@@ -208,9 +189,7 @@ describe('--embed --listen UI', function()
child_screen:attach(nil, child_session)
child_screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:[No Name] 0,0-1 All}|
|
]], attr_ids={
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index eca8ee6422..5a78e2baa9 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -878,20 +878,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -904,8 +895,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1: }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -917,20 +907,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -941,10 +922,7 @@ describe('float window', function()
screen:expect([[
^ {1: } |
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end
@@ -953,31 +931,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
]])
else
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -992,27 +957,17 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
+ [2:-------------------]{5:│}[4:--------------------]|*5
{5:[No Name] }{4:[No Name] }|
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 5
{1: }|
{2:~ }|
@@ -1064,20 +1019,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1090,8 +1036,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1: }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -1103,20 +1048,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1127,10 +1063,7 @@ describe('float window', function()
screen:expect([[
^ {1: } |
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end
@@ -1139,31 +1072,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
]])
else
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -1191,20 +1111,13 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{14: 1 }^x |
{14: 2 }y |
{14: 3 } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
@@ -1230,36 +1143,25 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{14: 1 }^x |
{14: 2 }y |
{14: 3 } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
{18: 1 }{15: }|
- {16:~ }|
- {16:~ }|
- {16:~ }|
+ {16:~ }|*3
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{14: 1 }^x |
{14: 2 }y |
{14: 3 } {18: 1 }{15: } |
- {0:~ }{16:~ }{0: }|
- {0:~ }{16:~ }{0: }|
- {0:~ }{16:~ }{0: }|
+ {0:~ }{16:~ }{0: }|*3
|
]])
end
@@ -1277,27 +1179,19 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{19: }{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
{15:x }|
{15:y }|
- {15: }|
- {15: }|
+ {15: }|*2
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
else
screen:expect{grid=[[
@@ -1305,8 +1199,7 @@ describe('float window', function()
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } {15:x } |
{0:~ }{15:y }{0: }|
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
+ {0:~ }{15: }{0: }|*2
|
]]}
end
@@ -1317,20 +1210,13 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{19: }{17:𐌢̀́̂̃̅̄𐌢̀́̂̃̅̄}{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
@@ -1358,36 +1244,24 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{19: }{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
- {15: }|
- {15: }|
- {15: }|
- {15: }|
+ {15: }|*4
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{19: }{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } {15: } |
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
+ {0:~ }{15: }{0: }|*3
|
]])
end
@@ -1405,27 +1279,19 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{19: }{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
{15:x }|
{15:y }|
- {15: }|
- {15: }|
+ {15: }|*2
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
else
screen:expect{grid=[[
@@ -1433,8 +1299,7 @@ describe('float window', function()
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } {15:x } |
{0:~ }{15:y }{0: }|
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
+ {0:~ }{15: }{0: }|*2
|
]]}
end
@@ -1445,20 +1310,13 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{19: }{17:𐌢̀́̂̃̅̄𐌢̀́̂̃̅̄}{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
@@ -1486,36 +1344,24 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{19: }{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
- {15: }|
- {15: }|
- {15: }|
- {15: }|
+ {15: }|*4
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
else
screen:expect([[
{19: }{20: 1 }{22:^x}{21: }|
{19: }{14: 2 }{22:y} |
{19: }{14: 3 }{22: } {15: } |
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
+ {0:~ }{15: }{0: }|*3
|
]])
end
@@ -1534,27 +1380,19 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
{20:1}{19: }{20: }{22:^x}{21: }|
{14:2}{19: }{14: }{22:y} |
{14:3}{19: }{14: }{22: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
{15:x }|
{15:y }|
- {15: }|
- {15: }|
+ {15: }|*2
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
else
screen:expect{grid=[[
@@ -1562,8 +1400,7 @@ describe('float window', function()
{14:2}{19: }{14: }{22:y} |
{14:3}{19: }{14: }{22: } {15:x } |
{0:~ }{15:y }{0: }|
- {0:~ }{15: }{0: }|
- {0:~ }{15: }{0: }|
+ {0:~ }{15: }{0: }|*2
|
]]}
end
@@ -1578,20 +1415,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1621,20 +1449,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1664,20 +1483,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1707,20 +1517,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1751,20 +1552,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1794,20 +1586,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1825,8 +1608,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1: halloj! }{0: }|
{0:~ }{1: BORDAA }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end
@@ -1835,20 +1617,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1866,8 +1639,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{5:<}{1: halloj! }{5:>}{0: }|
{0:~ }{5:<}{1: BORDAA }{5:>}{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end
@@ -1876,20 +1648,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -1927,12 +1690,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
neeed some dummy |
@@ -2046,20 +1804,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2101,20 +1850,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2144,20 +1884,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2187,20 +1918,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2230,20 +1952,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2282,20 +1995,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2325,20 +2029,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2368,20 +2063,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2411,20 +2097,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2463,20 +2140,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2506,20 +2174,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2549,20 +2208,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2597,20 +2247,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -2643,31 +2284,17 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{5:┌────────────────────────────────────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*6
{5:└────────────────────────────────────────┘}|
]], float_pos={
[4] = { { id = 1001 }, "NW", 1, 0, 0, true, 201 }
@@ -2679,10 +2306,7 @@ describe('float window', function()
screen:expect{grid=[[
{5:^┌──────────────────────────────────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*4
{5:└──────────────────────────────────────┘}|
]]}
end
@@ -2699,26 +2323,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
|
## grid 4
@@ -2740,10 +2349,7 @@ describe('float window', function()
{0:~ }{5:║}{1:abb acc }{5:║}{0: }|
{0:~ }{5:║}{1:^ }{5:║}{0: }|
{0:~ }{5:╚═════════╝}{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
end
@@ -2752,26 +2358,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
{3:-- }{8:match 1 of 4} |
## grid 4
@@ -2811,26 +2402,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
|
## grid 4
@@ -2852,10 +2428,7 @@ describe('float window', function()
{0:~ }{5:║}{1:abb acc }{5:║}{0: }|
{0:~ }{5:║}{1:ac^c }{5:║}{0: }|
{0:~ }{5:╚═════════╝}{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
end
@@ -2869,26 +2442,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
:popup Test |
## grid 4
@@ -2917,8 +2475,7 @@ describe('float window', function()
{0:~ }{5:╚═}{1: foo }{5:═══╝}{0: }|
{0:~ }{1: bar }{0: }|
{0:~ }{1: baz }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:popup Test |
]]}
end
@@ -2935,20 +2492,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
1,1 All |
## grid 4
@@ -2966,9 +2514,7 @@ describe('float window', function()
{1:^aaa aab } |
{0:~ }{1:abb acc }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
1,1 All |
]]}
end
@@ -2977,20 +2523,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
1,5 All |
## grid 4
@@ -3008,9 +2545,7 @@ describe('float window', function()
{1:aaa ^aab } |
{0:~ }{1:abb acc }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
1,5 All |
]]}
end
@@ -3022,26 +2557,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
fish:<>< |
## grid 4
{1:^ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
]], float_pos={
[4] = {{id = 1001}, "NW", 1, 0, 5, true, 50};
}, win_viewport={
@@ -3051,11 +2576,8 @@ describe('float window', function()
else
screen:expect{grid=[[
{1:^ } |
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }{2:~ }{0: }|*2
+ {0:~ }|*3
fish:<>< |
]]}
end
@@ -3072,34 +2594,19 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
## grid 3
0,0-1 All |
## grid 4
{1: }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
## grid 5
{1:^ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
]], float_pos={
[5] = {{id = 1002}, "NW", 1, 0, 5, true, 50};
[4] = {{id = 1001}, "NW", 1, 0, 0, true, 50};
@@ -3111,13 +2618,8 @@ describe('float window', function()
else
screen:expect{grid=[[
{1: } {1:^ } |
- {2:~ }{0: }{2:~ }{0: }|
- {2:~ }{0: }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {2:~ }{0: }{2:~ }{0: }|*2
+ {0:~ }|*5
0,0-1 All |
]]}
end
@@ -3125,34 +2627,19 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
## grid 3
{3:-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)} |
## grid 4
{1: }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
## grid 5
{1:^ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
]], float_pos={
[5] = {{id = 1002}, "NW", 1, 0, 5, true, 50};
[4] = {{id = 1001}, "NW", 1, 0, 0, true, 50};
@@ -3164,13 +2651,8 @@ describe('float window', function()
else
screen:expect{grid=[[
{1: } {1:^ } |
- {2:~ }{0: }{2:~ }{0: }|
- {2:~ }{0: }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {2:~ }{0: }{2:~ }{0: }|*2
+ {0:~ }|*5
{3:-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)} |
]]}
end
@@ -3184,20 +2666,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
the background tex^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -3208,11 +2681,7 @@ describe('float window', function()
else
screen:expect([[
the {1:x}ackground tex^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -3221,20 +2690,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
the background tex^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -3245,11 +2705,7 @@ describe('float window', function()
else
screen:expect([[
the background {1:x}ex^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -3258,31 +2714,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
the background tex^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
]])
else
screen:expect([[
the background tex^t |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -3309,17 +2752,13 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [8:----------------------------------------]|
- [8:----------------------------------------]|
+ [8:----------------------------------------]|*2
{4:X6 }|
- [7:----------------------------------------]|
- [7:----------------------------------------]|
+ [7:----------------------------------------]|*2
{5:X5 }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*2
{5:X2 }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:X1 }|
[3:----------------------------------------]|
## grid 2
@@ -3471,13 +2910,9 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3511,13 +2946,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3554,13 +2985,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3597,13 +3024,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3640,13 +3063,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3683,13 +3102,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3726,13 +3141,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*3
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -3802,47 +3213,31 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*5
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
]])
else
screen:expect([[
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{5:[No Name] [+] }|
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:[No Name] [+] }|
|
]])
@@ -3856,33 +3251,21 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*5
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5
{5:╔═════════╗}|
{5:║}{1: halloj! }{5:║}|
@@ -3895,9 +3278,7 @@ describe('float window', function()
screen:expect([[
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{5:[No Name] [+] }|
just some exampl^e text |
some more exam{5:╔═════════╗} |
@@ -3913,33 +3294,21 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*5
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5
{5:╔═════════╗}|
{5:║}{1: halloj! }{5:║}|
@@ -3952,9 +3321,7 @@ describe('float window', function()
screen:expect([[
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{5:[No Name] [+] }|
jus{5:╔═════════╗}pl^e text |
som{5:║}{1: halloj! }{5:║}ple text |
@@ -3970,33 +3337,21 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*5
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5
{5:╔═════════╗}|
{5:║}{1: halloj! }{5:║}|
@@ -4015,9 +3370,7 @@ describe('float window', function()
{5:[No║}{1: BORDAA }{5:║ }|
jus{5:╚═════════╝}pl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:[No Name] [+] }|
|
]])
@@ -4027,33 +3380,21 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*5
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
just some example text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5
{5:╔═════════╗}|
{5:║}{1: halloj! }{5:║}|
@@ -4072,9 +3413,7 @@ describe('float window', function()
{5:[No Name] [+] ╚═════════╝ }|
just some exampl^e text |
some more example text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:[No Name] [+] }|
|
]])
@@ -4121,20 +3460,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
- |
- |
- |
+ |*3
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
## grid 3
|
## grid 5
@@ -4169,8 +3500,7 @@ describe('float window', function()
{1:5 } {1:1 } {1:6 } {1:2 } |
{1:3 } {1:4 } |
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -4197,20 +3527,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
- |
- |
- |
+ |*3
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
## grid 3
|
## grid 5
@@ -4245,8 +3567,7 @@ describe('float window', function()
{1:6 } {1:8 } {1:3 } {1:4 } |
{1:2 } {1:1 } |
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -4280,10 +3601,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*4
[3:------------------------------]|
## grid 2
^just some |
@@ -4298,8 +3616,7 @@ describe('float window', function()
^just some |
example text that is wider tha|
n the window |
- |
- |
+ |*2
]]}
end
@@ -4310,10 +3627,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*4
[3:------------------------------]|
## grid 2
^just some |
@@ -4343,16 +3657,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*4
[3:------------------------------]|
## grid 2
^example text that is wider tha|
n the window |
- |
- |
+ |*2
## grid 3
|
## grid 4
@@ -4365,8 +3675,7 @@ describe('float window', function()
^example text that is wider tha|
n the window |
{1:some info! } |
- |
- |
+ |*2
]]}
end
@@ -4375,15 +3684,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*4
[3:---------------------------------------------]|
## grid 2
^example text that is wider than the window |
- |
- |
+ |*2
more text |
## grid 3
|
@@ -4407,26 +3712,14 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*9
[3:-------------------------]|
## grid 2
^example text that is wide|
r than the window |
- |
- |
+ |*2
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -4441,10 +3734,7 @@ describe('float window', function()
{1:some info! } |
|
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
end
@@ -4453,26 +3743,14 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*9
[3:-------------------------]|
## grid 2
^example text that is wide|
r than the window |
- |
- |
+ |*2
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -4484,13 +3762,9 @@ describe('float window', function()
screen:expect{grid=[[
^example{1:some info! }s wide|
r than the window |
- |
- |
+ |*2
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
end
@@ -4500,15 +3774,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
- [2:----]{5:│}[5:--------------------]|
+ [2:----]{5:│}[5:--------------------]|*9
[3:-------------------------]|
## grid 2
exam|
@@ -4526,14 +3792,7 @@ describe('float window', function()
{1:some info! }|
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
]], float_pos={
[4] = { { id = 1001 }, "SW", 2, 8, 0, true }
}}
@@ -4557,26 +3816,14 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*9
[3:-------------------------]|
## grid 2
^example text that is wide|
r than the window |
- |
- |
+ |*2
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -4591,10 +3838,7 @@ describe('float window', function()
{1:some info! } |
|
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
end
@@ -4603,26 +3847,14 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*9
[3:-------------------------]|
## grid 2
^example text that is wide|
r than the window |
- |
- |
+ |*2
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -4637,10 +3869,7 @@ describe('float window', function()
|
{1:some info! } |
more text |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]]}
end
@@ -4649,26 +3878,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*9
[3:-------------------------]|
## grid 2
{28:^+-- 5 lines: just some··}|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
|
## grid 4
@@ -4681,12 +3895,7 @@ describe('float window', function()
{28:^+-- 5 lines: just some··}|
{0:~ }|
{1:some info! }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]]}
end
@@ -4699,25 +3908,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*4
[3:------------------------------]|
## grid 2
that is wider than the windo^w |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
]])
else
screen:expect([[
that is wider than the windo^w |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end
@@ -4728,16 +3930,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*4
[3:------------------------------]|
## grid 2
that is wider than the windo^w |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
@@ -4748,8 +3945,7 @@ describe('float window', function()
else
screen:expect([[
that is wider than the windo^w |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{0:~}{1:some floaty text }{0: }|
|
]])
@@ -4771,11 +3967,7 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
## grid 2
{1:^ }|
@@ -4786,8 +3978,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^ }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -4804,20 +3995,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -4842,16 +4024,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*4
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 3
|
## grid 4
@@ -4874,14 +4051,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*3
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
## grid 3
|
## grid 4
@@ -4903,8 +4077,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
[3:----------------------------------------]|
## grid 2
^ |
@@ -4928,8 +4101,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
[3:----------------------------------------]|
## grid 2
|
@@ -4954,20 +4126,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -4993,20 +4156,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5030,20 +4184,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------]|
- [2:--------------------------]|
- [2:--------------------------]|
- [2:--------------------------]|
- [2:--------------------------]|
- [2:--------------------------]|
+ [2:--------------------------]|*6
[3:--------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5067,20 +4212,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*6
[3:-------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5104,20 +4240,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------]|
- [2:------------------------]|
- [2:------------------------]|
- [2:------------------------]|
- [2:------------------------]|
- [2:------------------------]|
+ [2:------------------------]|*6
[3:------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5141,20 +4268,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------]|
- [2:----------------]|
- [2:----------------]|
- [2:----------------]|
- [2:----------------]|
- [2:----------------]|
+ [2:----------------]|*6
[3:----------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5178,20 +4296,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------]|
- [2:---------------]|
- [2:---------------]|
- [2:---------------]|
- [2:---------------]|
- [2:---------------]|
+ [2:---------------]|*6
[3:---------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5215,20 +4324,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------]|
- [2:--------------]|
- [2:--------------]|
- [2:--------------]|
- [2:--------------]|
- [2:--------------]|
+ [2:--------------]|*6
[3:--------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5252,20 +4352,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------]|
- [2:------------]|
- [2:------------]|
- [2:------------]|
- [2:------------]|
- [2:------------]|
+ [2:------------]|*6
[3:------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5312,20 +4403,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -5365,19 +4447,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] }|
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -5402,11 +4477,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[Preview] }|
[3:----------------------------------------]|
## grid 2
@@ -5435,19 +4506,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] }|
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -5483,27 +4547,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{7:^ }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}}
@@ -5512,9 +4565,7 @@ describe('float window', function()
|
{0:~ }|
{0:~ }{7:^ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
|
]])
end
@@ -5526,27 +4577,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
{7:x aa^ }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
## grid 5
{13: aa }|
{1: word }|
@@ -5571,27 +4611,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{7:x a^a }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}}
@@ -5601,9 +4630,7 @@ describe('float window', function()
|
{0:~ }|
{0:~ }{7:x a^a }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
|
]])
end
@@ -5613,27 +4640,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
xx^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
{7:x aa }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
## grid 5
{13:xx }|
{1:yy }|
@@ -5648,8 +4664,7 @@ describe('float window', function()
{13:xx }{0: }|
{1:yy }{7: }{0: }|
{1:zz }{12: }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*2
{3:-- INSERT --} |
]])
end
@@ -5658,27 +4673,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
xx^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
{7:x aa }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}}
@@ -5687,9 +4691,7 @@ describe('float window', function()
xx^ |
{0:~ }|
{0:~ }{7:x aa }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
{3:-- INSERT --} |
]])
end
@@ -5701,27 +4703,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sign un^ |
## grid 4
{7: }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
## grid 5
{1: undefine }|
{1: unplace }|
@@ -5750,27 +4741,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
{7:x aa^ }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}, popupmenu={
@@ -5781,9 +4761,7 @@ describe('float window', function()
|
{0:~ }|
{0:~ }{7:x aa^ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
{3:-- INSERT --} |
]], popupmenu={
anchor = {1, 2, 7}, items = items, pos = 0
@@ -5794,27 +4772,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{7:x a^a }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}}
@@ -5823,9 +4790,7 @@ describe('float window', function()
|
{0:~ }|
{0:~ }{7:x a^a }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
|
]])
end
@@ -5836,27 +4801,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
xx^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
{7:x aa }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}, popupmenu={
@@ -5867,9 +4821,7 @@ describe('float window', function()
xx^ |
{0:~ }|
{0:~ }{7:x aa }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
{3:-- INSERT --} |
]], popupmenu={
anchor = {1, 0, 0}, items = items, pos = 0
@@ -5880,27 +4832,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
xx^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
{7:x aa }|
- {12:~ }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*3
]], float_pos={
[4] = {{ id = 1001 }, "NW", 1, 2, 5, true},
}}
@@ -5909,9 +4850,7 @@ describe('float window', function()
xx^ |
{0:~ }|
{0:~ }{7:x aa }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
- {0:~ }{12:~ }{0: }|
+ {0:~ }{12:~ }{0: }|*3
{3:-- INSERT --} |
]])
end
@@ -5927,20 +4866,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
@@ -5956,8 +4886,7 @@ describe('float window', function()
{13:aa }{0: }|
{1:word }{0: }|
{1:longtext }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- INSERT --} |
]])
end
@@ -5968,20 +4897,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
@@ -6001,8 +4921,7 @@ describe('float window', function()
{13:aa }{15:e info }{0: }|
{1:word }{15:ut item }{0: }|
{1:longtext }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- INSERT --} |
]])
end
@@ -6013,20 +4932,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 5
@@ -6040,9 +4950,7 @@ describe('float window', function()
aa^ |
{0:~ }{15:some info }{0: }|
{0:~ }{15:about item }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:-- INSERT --} |
]])
end
@@ -6051,31 +4959,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
]])
else
screen:expect([[
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
end
@@ -6086,20 +4981,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
@@ -6115,8 +5001,7 @@ describe('float window', function()
{13:aa }{0: }|
{1:word }{0: }|
{1:longtext }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- INSERT --} |
]])
end
@@ -6125,31 +5010,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
]])
else
screen:expect([[
aa^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{3:-- INSERT --} |
]])
end
@@ -6165,20 +5037,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6196,8 +5059,7 @@ describe('float window', function()
{0:~ }|
{0:~ }here {0: }|
{0:~ }float {0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end
@@ -6220,20 +5082,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6246,8 +5099,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6258,20 +5110,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6284,8 +5127,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6294,20 +5136,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6320,8 +5153,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6334,20 +5166,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
@@ -6360,8 +5183,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- INSERT --} |
]])
end
@@ -6370,20 +5192,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6396,8 +5209,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6408,20 +5220,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6434,8 +5237,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6444,20 +5246,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6470,8 +5263,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6482,20 +5274,11 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 4, 0, 0)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6509,8 +5292,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6519,20 +5301,11 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6546,8 +5319,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6561,20 +5333,12 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 4, 0, 0)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
a |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -6588,8 +5352,7 @@ describe('float window', function()
^a |
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6598,20 +5361,12 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
a |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -6625,8 +5380,7 @@ describe('float window', function()
a |
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6637,20 +5391,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- INSERT --} |
## grid 4
@@ -6663,8 +5408,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- INSERT --} |
]])
end
@@ -6673,20 +5417,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6699,8 +5434,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6709,20 +5443,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6735,8 +5460,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6748,20 +5472,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6774,8 +5489,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6784,34 +5498,23 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{1:^y }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
]], float_pos=expected_pos}
else
screen:expect([[
x |
{0:~ }|
{0:~ }{1:^y }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
+ {0:~ }{2:~ }{0: }|*2
{0:~ }|
|
]])
@@ -6821,20 +5524,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6845,9 +5539,7 @@ describe('float window', function()
x |
{0:~ }|
{0:~ }{1:^y }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end
@@ -6856,36 +5548,23 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{1:^y }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
]], float_pos=expected_pos}
else
screen:expect([[
x |
{0:~ }|
{0:~ }{1:^y }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
+ {0:~ }{2:~ }{0: }|*3
|
]])
end
@@ -6894,38 +5573,21 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{1:^y }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
]], float_pos=expected_pos}
else
screen:expect([[
x {1:^y } |
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
- {0:~ }{2:~ }{0: }|
+ {0:~ }{2:~ }{0: }|*5
|
]])
end
@@ -6936,20 +5598,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6962,8 +5615,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -6972,20 +5624,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -6998,8 +5641,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -7008,20 +5650,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -7034,8 +5667,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -7044,20 +5676,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -7070,8 +5693,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -7080,20 +5702,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -7106,8 +5719,7 @@ describe('float window', function()
{0:~ }|
{1:^y }|
{2:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -7118,11 +5730,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{4:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7153,11 +5763,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{5:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7188,11 +5796,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{5:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7224,11 +5830,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{4:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7261,11 +5865,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{4:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7296,11 +5898,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{5:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7331,11 +5931,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{5:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7368,11 +5966,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{4:[No Name] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7405,11 +6001,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{4:[No Name] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7442,19 +6036,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
+ [5:--------------------]{5:│}[2:-------------------]|*5
{4:[No Name] [+] }{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -7462,10 +6049,7 @@ describe('float window', function()
{2:~ }|
## grid 5
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
else
screen:expect([[
@@ -7485,19 +6069,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
+ [5:--------------------]{5:│}[2:-------------------]|*5
{4:[No Name] }{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
:vnew |
## grid 4
@@ -7505,10 +6082,7 @@ describe('float window', function()
{2:~ }|
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
else
screen:expect([[
@@ -7528,19 +6102,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
- [5:--------------------]{5:│}[2:-------------------]|
+ [5:--------------------]{5:│}[2:-------------------]|*5
{4:[No Name] }{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
:vnew |
## grid 4
@@ -7548,10 +6115,7 @@ describe('float window', function()
{2:~ }|
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
else
screen:expect([[
@@ -7596,20 +6160,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -7638,20 +6193,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:quit |
## grid 4
@@ -7666,8 +6212,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:quit |
]])
end
@@ -7676,31 +6221,18 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:quit |
]])
else
screen:expect([[
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
:quit |
]])
end
@@ -7713,31 +6245,18 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
]]}
else
screen:expect([[
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -7748,20 +6267,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [3:----------------------------------------]|
- [3:----------------------------------------]|
- [3:----------------------------------------]|
+ [2:----------------------------------------]|*4
+ [3:----------------------------------------]|*3
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{7:E5601: Cannot close window, only floatin}|
{7:g window would remain} |
@@ -7787,20 +6297,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -7813,8 +6314,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1:^y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -7825,11 +6325,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{4:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7860,31 +6358,18 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 3
|
## grid 5
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
]]}
else
screen:expect([[
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -7895,11 +6380,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{5:[No Name] [+] }|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -7930,13 +6413,10 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*2
{5:[No Name] [+] }|
[2:----------------------------------------]|
- [3:----------------------------------------]|
- [3:----------------------------------------]|
- [3:----------------------------------------]|
+ [3:----------------------------------------]|*3
## grid 2
x |
{0:~ }|
@@ -7969,11 +6449,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*2
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -8002,19 +6480,12 @@ describe('float window', function()
expected_pos = {[4]={external=true}}
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
@@ -8031,11 +6502,9 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*2
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -8055,20 +6524,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8093,11 +6553,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*2
{5:[No Name] [+] }|
- [4:----------------------------------------]|
- [4:----------------------------------------]|
+ [4:----------------------------------------]|*2
{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -8128,11 +6586,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [6:--------------------]{5:│}[5:-------------------]|
- [6:--------------------]{5:│}[5:-------------------]|
+ [6:--------------------]{5:│}[5:-------------------]|*2
{5:[No Name] [+] [No Name] [+] }|
- [7:--------------------]{5:│}[2:-------------------]|
- [7:--------------------]{5:│}[2:-------------------]|
+ [7:--------------------]{5:│}[2:-------------------]|*2
{4:[No Name] [+] }{5:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -8175,11 +6631,9 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [6:-------------------]{5:│}[5:--------------------]|
- [6:-------------------]{5:│}[5:--------------------]|
+ [6:-------------------]{5:│}[5:--------------------]|*2
{5:[No Name] [+] [No Name] [+] }|
- [7:-------------------]{5:│}[2:--------------------]|
- [7:-------------------]{5:│}[2:--------------------]|
+ [7:-------------------]{5:│}[2:--------------------]|*2
{5:[No Name] [+] [No Name] [+] }|
[3:----------------------------------------]|
## grid 2
@@ -8253,19 +6707,11 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
{9: }{10:2}{9:+ [No Name] }{3: [No Name] }{5: }{9:X}|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*5
[3:----------------------------------------]|
## grid 2 (hidden)
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:tabnew |
## grid 4 (hidden)
@@ -8273,19 +6719,13 @@ describe('float window', function()
{2:~ }|
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]]}
else
screen:expect([[
{9: }{10:2}{9:+ [No Name] }{3: [No Name] }{5: }{9:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
:tabnew |
]])
end
@@ -8295,18 +6735,11 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
{3: }{11:2}{3:+ [No Name] }{9: [No Name] }{5: }{9:X}|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
:tabnext |
## grid 4
@@ -8314,10 +6747,7 @@ describe('float window', function()
{2:~ }|
## grid 5 (hidden)
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
else
screen:expect([[
@@ -8325,8 +6755,7 @@ describe('float window', function()
^x |
{0:~ }{1:y }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:tabnext |
]])
end
@@ -8336,18 +6765,11 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
{9: }{10:2}{9:+ [No Name] }{3: [No Name] }{5: }{9:X}|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*5
[3:----------------------------------------]|
## grid 2 (hidden)
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
:tabnext |
## grid 4 (hidden)
@@ -8355,19 +6777,13 @@ describe('float window', function()
{2:~ }|
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]]}
else
screen:expect([[
{9: }{10:2}{9:+ [No Name] }{3: [No Name] }{5: }{9:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
:tabnext |
]])
end
@@ -8382,32 +6798,19 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
{9: + [No Name] }{3: }{11:2}{3:+ [No Name] }{5: }{9:X}|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*5
[3:----------------------------------------]|
## grid 2 (hidden)
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:tabnew |
## grid 4
y |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
else
eq("UI doesn't support external windows",
@@ -8419,31 +6822,19 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
{3: }{11:2}{3:+ [No Name] }{9: [No Name] }{5: }{9:X}|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*5
[3:----------------------------------------]|
## grid 2
^x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
:tabnext |
## grid 4
y |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5 (hidden)
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
end
@@ -8452,31 +6843,19 @@ describe('float window', function()
screen:expect{grid=[[
## grid 1
{9: + [No Name] }{3: }{11:2}{3:+ [No Name] }{5: }{9:X}|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
- [5:----------------------------------------]|
+ [5:----------------------------------------]|*5
[3:----------------------------------------]|
## grid 2 (hidden)
x |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
:tabnext |
## grid 4
y |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
## grid 5
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
]], float_pos=expected_pos}
end
end)
@@ -8489,20 +6868,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8519,20 +6889,11 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 4, 0, 0)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8549,20 +6910,11 @@ describe('float window', function()
meths.input_mouse('left', 'drag', '', 4, 1, 2)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- VISUAL --} |
## grid 4
@@ -8617,20 +6969,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8649,20 +6992,11 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 4, 1, 1)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8681,20 +7015,11 @@ describe('float window', function()
meths.input_mouse('left', 'drag', '', 4, 2, 3)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- VISUAL --} |
## grid 4
@@ -8752,20 +7077,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8783,20 +7099,11 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 4, 1, 0)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -8814,20 +7121,11 @@ describe('float window', function()
meths.input_mouse('left', 'drag', '', 4, 2, 2)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
{3:-- VISUAL --} |
## grid 4
@@ -8884,87 +7182,62 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
+ [2:-------------------]{5:│}[4:--------------------]|*5
{5:[No Name] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
^foo |
bar |
baz |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
]])
meths.input_mouse('left', 'press', '', 4, 2, 2)
screen:expect([[
## grid 1
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
+ [2:-------------------]{5:│}[4:--------------------]|*5
{5:[No Name] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
foo |
bar |
ba^z |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
]])
meths.input_mouse('left', 'drag', '', 4, 1, 1)
screen:expect([[
## grid 1
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
- [2:-------------------]{5:│}[4:--------------------]|
+ [2:-------------------]{5:│}[4:--------------------]|*5
{5:[No Name] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
{3:-- VISUAL --} |
## grid 4
foo |
b^a{27:r} |
{27:baz} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
]])
else
screen:expect([[
{5:│}^foo |
{0:~ }{5:│}bar |
{0:~ }{5:│}baz |
- {0:~ }{5:│}{0:~ }|
- {0:~ }{5:│}{0:~ }|
+ {0:~ }{5:│}{0:~ }|*2
{5:[No Name] }{4:[No Name] [+] }|
|
]])
@@ -8974,8 +7247,7 @@ describe('float window', function()
{5:│}foo |
{0:~ }{5:│}bar |
{0:~ }{5:│}ba^z |
- {0:~ }{5:│}{0:~ }|
- {0:~ }{5:│}{0:~ }|
+ {0:~ }{5:│}{0:~ }|*2
{5:[No Name] }{4:[No Name] [+] }|
|
]])
@@ -8985,8 +7257,7 @@ describe('float window', function()
{5:│}foo |
{0:~ }{5:│}b^a{27:r} |
{0:~ }{5:│}{27:baz} |
- {0:~ }{5:│}{0:~ }|
- {0:~ }{5:│}{0:~ }|
+ {0:~ }{5:│}{0:~ }|*2
{5:[No Name] }{4:[No Name] [+] }|
{3:-- VISUAL --} |
]])
@@ -9000,27 +7271,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{5:┌────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*3
{5:└────────────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "NW", 1, 0, 5, true, 50};
@@ -9031,9 +7291,7 @@ describe('float window', function()
else
screen:expect{grid=[[
^ {5:┌────────────────────┐} |
- {0:~ }{5:│}{1: }{5:│}{0: }|
- {0:~ }{5:│}{1: }{5:│}{0: }|
- {0:~ }{5:│}{1: }{5:│}{0: }|
+ {0:~ }{5:│}{1: }{5:│}{0: }|*3
{0:~ }{5:└────────────────────┘}{0: }|
{0:~ }|
|
@@ -9066,20 +7324,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -9110,20 +7359,11 @@ describe('float window', function()
meths.input_mouse('left', 'press', '', 4, 2, 1)
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -9220,14 +7460,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9263,14 +7496,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9307,14 +7533,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9359,14 +7578,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9402,14 +7614,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9446,14 +7651,7 @@ describe('float window', function()
meths.input_mouse('wheel', 'down', '', 4, 2, 2)
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9468,8 +7666,7 @@ describe('float window', function()
|
## grid 4
{11:popup text}{9: }|
- {12:~ }|
- {12:~ }|
+ {12:~ }|*2
]], float_pos={[4] = {{id = 1001}, "NW", 1, 2, 5, true}}}
else
meths.input_mouse('wheel', 'down', '', 0, 4, 7)
@@ -9495,14 +7692,7 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
- [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|*8
[3:--------------------------------------------------]|
## grid 2
Ut enim ad minim veniam, quis nostrud |
@@ -9518,8 +7708,7 @@ describe('float window', function()
## grid 4
{17:┌}{23:Title}{17:──────────┐}|
{17:│}{11:popup text}{18: }{17:│}|
- {17:│}{19:~ }{17:│}|
- {17:│}{19:~ }{17:│}|
+ {17:│}{19:~ }{17:│}|*2
{17:└}{23:Footer}{17:─────────┘}|
]], float_pos={[4] = {{id = 1001}, "NW", 1, 2, 5, true}}}
else
@@ -9547,25 +7736,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
# TODO: 测试字典信息的准确性 |
# FIXME: 测试字典信息的准确^性 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
## grid 4
- {1:口 }|
- {1:口 }|
+ {1:口 }|*2
{1: }|
]], float_pos={ [4] = { { id = 1001 }, "NW", 1, 0, 11, true } }}
else
@@ -9573,9 +7753,7 @@ describe('float window', function()
# TODO: 测 {1:口 }信息的准确性 |
# FIXME: 测{1:口 } 信息的准确^性 |
{0:~ }{1: }{0: }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end
@@ -9584,20 +7762,12 @@ describe('float window', function()
if multigrid then
screen:expect([[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
# TODO: 测试字典信息的准确性 |
# FIXME: 测试字典信息的准确^性 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
## grid 3
|
]])
@@ -9605,10 +7775,7 @@ describe('float window', function()
screen:expect([[
# TODO: 测试字典信息的准确性 |
# FIXME: 测试字典信息的准确^性 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end
@@ -9629,20 +7796,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
# TODO: 测试字典信息的准确性 |
# FIXME: 测试字典信息的准确^性 |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
## grid 3
|
## grid 5
@@ -9657,9 +7816,7 @@ describe('float window', function()
# TODO: 测 {2: x x x}{1:息}{2: xx} 确性 |
# FIXME: 测{1:试}{2:x x x}{1:息}{2: x}准确^性 |
{3:~ }{4: }{3: }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
|
]])
end
@@ -9668,20 +7825,12 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
# TODO: 测试字典信息的准确性 |
# FIXME: 测试字典信息的准确^性 |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
## grid 3
|
## grid 5
@@ -9696,9 +7845,7 @@ describe('float window', function()
# TODO: 测试{2: x x}{1:信}{2:x }{1:的}{2:xx}确性 |
# FIXME: 测 {2: x x}{1:信}{2:x }{1:的}{2:x} 确^性 |
{3:~ }{4: }{3: }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
|
]])
end
@@ -9735,20 +7882,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -9757,10 +7895,8 @@ describe('float window', function()
{2:longest}|
## grid 5
{2:---------}|
- {2:- -}|
- {2:- -}|
- {2: }|
- {2: }|
+ {2:- -}|*2
+ {2: }|*2
]], attr_ids={
[1] = {foreground = Screen.colors.Blue1, bold = true};
[2] = {background = Screen.colors.LightMagenta};
@@ -9803,20 +7939,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -9825,10 +7952,8 @@ describe('float window', function()
{2:n}|
## grid 5
{2:---}|
- {2:- -}|
- {2:- -}|
- {2: }|
- {2: }|
+ {2:- -}|*2
+ {2: }|*2
]], attr_ids={
[1] = {foreground = Screen.colors.Blue1, bold = true};
[2] = {background = Screen.colors.LightMagenta};
@@ -9857,20 +7982,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -9888,8 +8004,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{7: }{0: }|
{0:~ }{7:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end
@@ -9906,20 +8021,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -9962,20 +8068,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -9993,8 +8090,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{7: }{0: }|
{0:~ }{7:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end
@@ -10011,20 +8107,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -10071,34 +8158,22 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{7: }|
- {7:~ }|
- {7:~ }|
+ {7:~ }|*2
## grid 5
{17: }|
- {17:~ }|
- {17:~ }|
+ {17:~ }|*2
## grid 6
{8: }|
- {8:~ }|
- {8:~ }|
+ {8:~ }|*2
]], float_pos={
[4] = {{id = 1001}, "NW", 1, 1, 5, true, 30};
[5] = {{id = 1002}, "NW", 1, 2, 6, true, 50};
@@ -10130,20 +8205,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -10162,8 +8228,7 @@ describe('float window', function()
{0:~ }{3:floaty bar }{0: }|
{0:~ }{1: }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end
@@ -10174,28 +8239,18 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{5:┌───────────────┐}|
{5:│}{3:floaty bar }{5:│}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*2
{5:└───────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "NW", 1, 0, 4, true, 50};
@@ -10208,8 +8263,7 @@ describe('float window', function()
^ {5:┌───────────────┐} |
{0:~ }{5:│}{3:floaty bar }{5:│}{0: }|
{0:~ }{5:│}{1: }{5:│}{0: }|
- {0:~ }{5:│}{2:~ }{5:│}{0: }|
- {0:~ }{5:│}{2:~ }{5:│}{0: }|
+ {0:~ }{5:│}{2:~ }{5:│}{0: }|*2
{0:~ }{5:└───────────────┘}{0: }|
|
]]}
@@ -10225,32 +8279,14 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
## grid 4
{5:┌────────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*4
{5:└────────────────────────────────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "SW", 1, 9, 0, true, 50};
@@ -10261,13 +8297,9 @@ describe('float window', function()
else
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{5:┌──────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*4
{5:└──────────────────────────────────────┘}|
]]}
end
@@ -10281,30 +8313,14 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
## grid 4
{5:┌────────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*2
{5:└────────────────────────────────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "SW", 1, 9, 0, true, 50};
@@ -10315,13 +8331,9 @@ describe('float window', function()
else
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{5:┌──────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*2
{5:└──────────────────────────────────────┘}|
]]}
@@ -10331,25 +8343,10 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*9
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
## grid 3
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
@@ -10357,14 +8354,7 @@ describe('float window', function()
else
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
]]}
end
end)
@@ -10377,32 +8367,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*8
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
## grid 3
|
## grid 4
{5:┌────────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*4
{5:└────────────────────────────────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "SW", 1, 8, 0, true, 50};
@@ -10415,10 +8389,7 @@ describe('float window', function()
^ |
{0:~ }|
{5:┌──────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*4
{5:└──────────────────────────────────────┘}|
|
]]}
@@ -10436,33 +8407,17 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [3:----------------------------------------]|
- [3:----------------------------------------]|
+ [2:----------------------------------------]|*7
+ [3:----------------------------------------]|*2
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
## grid 3
|
{8:Press ENTER or type command to continue}^ |
## grid 4
{5:┌────────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*4
{5:└────────────────────────────────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "SW", 1, 8, 0, true, 50};
@@ -10475,9 +8430,7 @@ describe('float window', function()
|
{0:~ }|
{5:┌──────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*3
{4: }|
|
{8:Press ENTER or type command to continue}^ |
@@ -10488,30 +8441,16 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*8
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
## grid 3
|
## grid 4
{5:┌────────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*2
{5:└────────────────────────────────────────┘}|
]], float_pos={
[4] = {{id = 1001}, "SW", 1, 8, 0, true, 50};
@@ -10522,12 +8461,9 @@ describe('float window', function()
else
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{5:┌──────────────────────────────────────┐}|
- {5:│}{1: }{5:│}|
- {5:│}{1: }{5:│}|
+ {5:│}{1: }{5:│}|*2
{5:└──────────────────────────────────────┘}|
|
]]}
@@ -10537,24 +8473,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*8
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
## grid 3
|
]], win_viewport={
@@ -10563,13 +8486,7 @@ describe('float window', function()
else
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
|
]]}
end
@@ -10611,20 +8528,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sleep 100^ |
## grid 4
@@ -10643,8 +8551,7 @@ describe('float window', function()
{0:~}{1:ab }{0: }|
{0:~}{1:cd }{0: }|
{0:~}{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:sleep 100^ |
]]}
end
@@ -10653,20 +8560,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sleep 100 |
## grid 4
@@ -10685,8 +8583,7 @@ describe('float window', function()
{0:~}{1:ab }{0: }|
{0:~}{1:c^d }{0: }|
{0:~}{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:sleep 100 |
]]}
end
@@ -10698,20 +8595,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sleep 100^ |
## grid 4
@@ -10742,20 +8630,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sleep 100 |
## grid 4
@@ -10789,20 +8668,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sleep 100^ |
## grid 4
@@ -10833,20 +8703,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
:sleep 100 |
## grid 4
@@ -10884,20 +8745,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
@@ -10935,20 +8787,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
@@ -10959,11 +8802,7 @@ describe('float window', function()
else
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -10972,20 +8811,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
@@ -10999,8 +8829,7 @@ describe('float window', function()
{0:~ }|
{0:~ }{1: }{0: }|
{0:~ }{2:~ }{0: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end
@@ -11009,20 +8838,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
@@ -11033,11 +8853,7 @@ describe('float window', function()
else
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
@@ -11065,53 +8881,27 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{5:┌───────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*10
{5:└───────────┘}|
## grid 5
{5:┌────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*7
{5:└────────┘}|
## grid 6
{5:┌────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*3
{5:└────┘}|
## grid 7
{5:┌──┐}|
@@ -11136,63 +8926,35 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{5:┌───────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*10
{5:└───────────┘}|
## grid 5
{5:┌────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*7
{5:└────────┘}|
## grid 6
{5:┌────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*3
{5:└────┘}|
]], float_pos=expected_pos}
else
screen:expect([[
^ {5:┌─┌─┌────┐─┐┐} |
{0:~ }{5:│}{1: }{5:│}{1: }{5:│}{1: }{5:│}{1: }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~}{5:│}{2:~ }{5:│}{2: }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~}{5:│}{2:~ }{5:│}{2: }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~}{5:│}{2:~ }{5:│}{2: }{5:││}{0: }|
+ {0:~ }{5:│}{2:~}{5:│}{2:~}{5:│}{2:~ }{5:│}{2: }{5:││}{0: }|*3
{0:~ }{5:│}{2:~}{5:│}{2:~}{5:└────┘}{2: }{5:││}{0: }|
|
]])
@@ -11203,57 +8965,30 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
## grid 4
{5:┌───────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*10
{5:└───────────┘}|
## grid 5
{5:┌────────┐}|
{5:│}{1: }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
- {5:│}{2:~ }{5:│}|
+ {5:│}{2:~ }{5:│}|*7
{5:└────────┘}|
]], float_pos=expected_pos}
else
screen:expect([[
^ {5:┌─┌────────┐┐} |
{0:~ }{5:│}{1: }{5:│}{1: }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~ }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~ }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~ }{5:││}{0: }|
- {0:~ }{5:│}{2:~}{5:│}{2:~ }{5:││}{0: }|
+ {0:~ }{5:│}{2:~}{5:│}{2:~ }{5:││}{0: }|*4
|
]])
end
@@ -11262,20 +8997,11 @@ describe('float window', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
- [2:----------------------------------------]|
+ [2:----------------------------------------]|*6
[3:----------------------------------------]|
## grid 2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
## grid 3
|
@@ -11283,11 +9009,7 @@ describe('float window', function()
else
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua
index 1addf7088e..55197c75a8 100644
--- a/test/functional/ui/fold_spec.lua
+++ b/test/functional/ui/fold_spec.lua
@@ -60,34 +60,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7: }{5:^+-- 2 lines: ·············}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]])
else
screen:expect([[
{7: }{5:^+-- 2 lines: ·············}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end
@@ -101,22 +85,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+ }{8: 1 }{5:+-- 4 lines: This is a················}|
{6: }{9: 5 }{12:^in his cave. }|
{7: }{8: 6 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -125,10 +100,7 @@ describe("folded lines", function()
{7:+ }{8: 1 }{5:+-- 4 lines: This is a················}|
{6: }{9: 5 }{12:^in his cave. }|
{7: }{8: 6 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -136,22 +108,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{6:+ }{9: 1 }{13:^+-- 4 lines: This is a················}|
{7: }{8: 5 }in his cave. |
{7: }{8: 6 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -160,10 +123,7 @@ describe("folded lines", function()
{6:+ }{9: 1 }{13:^+-- 4 lines: This is a················}|
{7: }{8: 5 }in his cave. |
{7: }{8: 6 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -177,22 +137,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+ }{8: 1 }{13:^+-- 4 lines: This is a················}|
{7: }{8: 5 }in his cave. |
{7: }{8: 6 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -201,10 +152,7 @@ describe("folded lines", function()
{7:+ }{8: 1 }{13:^+-- 4 lines: This is a················}|
{7: }{8: 5 }in his cave. |
{7: }{8: 6 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -212,22 +160,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{6:+ }{9:1 }{5:^+-- 4 lines: This is a················}|
{7: }{8: 1 }in his cave. |
{7: }{8: 2 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -236,10 +175,7 @@ describe("folded lines", function()
{6:+ }{9:1 }{5:^+-- 4 lines: This is a················}|
{7: }{8: 1 }in his cave. |
{7: }{8: 2 } |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -272,10 +208,7 @@ describe("folded lines", function()
{5:^+-- 4 lines: This is a······················}|
in his cave. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
end
@@ -292,10 +225,7 @@ describe("folded lines", function()
{5:^+-- 4 lines: This is a······················}|
in his cave. |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
end
@@ -318,13 +248,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:▾▾}^aa |
@@ -354,13 +278,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
a^a{7:▾▾}|
@@ -391,22 +309,12 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 0, 1)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:▾▸}{5:^+--- 5 lines: aa··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
:set norightleft |
]])
@@ -415,11 +323,7 @@ describe("folded lines", function()
screen:expect([[
{7:▾▸}{5:^+--- 5 lines: aa··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:set norightleft |
]])
end
@@ -428,22 +332,11 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:▸ }{5:^+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
:set norightleft |
]])
@@ -451,12 +344,7 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 0, 0, 0)
screen:expect([[
{7:▸ }{5:^+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
:set norightleft |
]])
end
@@ -467,22 +355,13 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 1, 0)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{11:!!!!!! }|
{7:▾▸}{5:^+--- 5 lines: aa··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:set norightleft |
]])
@@ -492,10 +371,7 @@ describe("folded lines", function()
{11:!!!!!! }|
{7:▾▸}{5:^+--- 5 lines: aa··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:set norightleft |
]])
end
@@ -504,13 +380,7 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 1, 1)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{11:!!!!!! }|
@@ -569,12 +439,9 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 4, 0, 0)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*2
{2:[No Name] [+] }|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*3
{3:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
@@ -605,12 +472,9 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 4, 1, 0)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*2
{2:[No Name] [+] }|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*3
{3:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
@@ -641,12 +505,9 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 1, 0)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*2
{3:[No Name] [+] }|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*3
{2:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
@@ -677,12 +538,9 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*2
{3:[No Name] [+] }|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*3
{2:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
@@ -741,12 +599,7 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 4, 0, 0)
screen:expect([[
## grid 1
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
+ [2:----------------------]{2:│}[4:----------------------]|*6
{2:[No Name] [+] }{3:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
@@ -762,9 +615,7 @@ describe("folded lines", function()
{7:-}^aa |
{7:+}{5:+--- 4 lines: bb····}|
{7:│}ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]])
else
meths.input_mouse('left', 'press', '', 0, 0, 23)
@@ -784,12 +635,7 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 4, 1, 0)
screen:expect([[
## grid 1
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
+ [2:----------------------]{2:│}[4:----------------------]|*6
{2:[No Name] [+] }{3:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
@@ -827,21 +673,14 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 1, 0)
screen:expect([[
## grid 1
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
+ [2:----------------------]{2:│}[4:----------------------]|*6
{3:[No Name] [+] }{2:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
{7:-}aa |
{7:+}{5:^+--- 4 lines: bb····}|
{7:│}ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
:1 |
## grid 4
@@ -870,21 +709,12 @@ describe("folded lines", function()
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect([[
## grid 1
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
- [2:----------------------]{2:│}[4:----------------------]|
+ [2:----------------------]{2:│}[4:----------------------]|*6
{3:[No Name] [+] }{2:[No Name] [+] }|
[3:---------------------------------------------]|
## grid 2
{7:+}{5:^+-- 6 lines: aa·····}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
:1 |
## grid 4
@@ -930,12 +760,7 @@ describe("folded lines", function()
screen:expect([[
## grid 1
{10: + [No Name] }{11: + [No Name] }{2: }{10:X}|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*6
[3:---------------------------------------------]|
## grid 2 (hidden)
{7:- }aa |
@@ -951,9 +776,7 @@ describe("folded lines", function()
{7:- }^aa |
{7:│+}{5:+--- 4 lines: bb··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]])
else
meths.input_mouse('left', 'press', '', 0, 2, 1)
@@ -962,9 +785,7 @@ describe("folded lines", function()
{7:- }^aa |
{7:│+}{5:+--- 4 lines: bb··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:tab split |
]])
end
@@ -974,12 +795,7 @@ describe("folded lines", function()
screen:expect([[
## grid 1
{10: + [No Name] }{11: + [No Name] }{2: }{10:X}|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*6
[3:---------------------------------------------]|
## grid 2 (hidden)
{7:- }aa |
@@ -993,22 +809,14 @@ describe("folded lines", function()
:tab split |
## grid 4
{7:+ }{5:^+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]])
else
meths.input_mouse('left', 'press', '', 0, 1, 0)
screen:expect([[
{10: + [No Name] }{11: + [No Name] }{2: }{10:X}|
{7:+ }{5:^+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:tab split |
]])
end
@@ -1019,29 +827,18 @@ describe("folded lines", function()
screen:expect([[
## grid 1
{11: + [No Name] }{10: + [No Name] }{2: }{10:X}|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*6
[3:---------------------------------------------]|
## grid 2
{7:- }^aa |
{7:│+}{5:+--- 4 lines: bb··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
:tabnext |
## grid 4 (hidden)
{7:+ }{5:+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]])
else
meths.input_mouse('left', 'press', '', 0, 2, 1)
@@ -1050,9 +847,7 @@ describe("folded lines", function()
{7:- }^aa |
{7:│+}{5:+--- 4 lines: bb··························}|
{7:│ }ff |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:tabnext |
]])
end
@@ -1062,40 +857,23 @@ describe("folded lines", function()
screen:expect([[
## grid 1
{11: + [No Name] }{10: + [No Name] }{2: }{10:X}|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*6
[3:---------------------------------------------]|
## grid 2
{7:+ }{5:^+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
:tabnext |
## grid 4 (hidden)
{7:+ }{5:+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]])
else
meths.input_mouse('left', 'press', '', 0, 1, 0)
screen:expect([[
{11: + [No Name] }{10: + [No Name] }{2: }{10:X}|
{7:+ }{5:^+-- 6 lines: aa···························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:tabnext |
]])
end
@@ -1109,22 +887,12 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ ﺎﻠﻋَﺮَﺒِﻳَّﺓ |
möre tex^t |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
]])
@@ -1132,11 +900,7 @@ describe("folded lines", function()
screen:expect([[
å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ ﺎﻠﻋَﺮَﺒِﻳَّﺓ |
möre tex^t |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end
@@ -1145,34 +909,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:^+-- 2 lines: å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ ﺎﻠﻋَﺮَﺒِﻳَّﺓ·················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]])
else
screen:expect([[
{5:^+-- 2 lines: å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ ﺎﻠﻋَﺮَﺒِﻳَّﺓ·················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end
@@ -1181,34 +929,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:^+-- 2 lines: å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ العَرَبِيَّة·················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
:set noarabicshape |
]])
else
screen:expect([[
{5:^+-- 2 lines: å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ العَرَبِيَّة·················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
:set noarabicshape |
]])
end
@@ -1217,34 +949,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+ }{8: 1 }{5:^+-- 2 lines: å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ العَرَبِيَّة···········}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
:set number foldcolumn=2 |
]])
else
screen:expect([[
{7:+ }{8: 1 }{5:^+-- 2 lines: å 语 x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ العَرَبِيَّة···········}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
:set number foldcolumn=2 |
]])
end
@@ -1254,34 +970,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:···········ةيَّبِرَعَلا x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å :senil 2 --^+}{8: 1 }{7: +}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*6
## grid 3
:set rightleft |
]])
else
screen:expect([[
{5:···········ةيَّبِرَعَلا x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å :senil 2 --^+}{8: 1 }{7: +}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*6
:set rightleft |
]])
end
@@ -1290,34 +990,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:·················ةيَّبِرَعَلا x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å :senil 2 --^+}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*6
## grid 3
:set nonumber foldcolumn=0 |
]])
else
screen:expect([[
{5:·················ةيَّبِرَعَلا x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å :senil 2 --^+}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*6
:set nonumber foldcolumn=0 |
]])
end
@@ -1326,34 +1010,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:·················ﺔﻴَّﺑِﺮَﻌَﻟﺍ x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å :senil 2 --^+}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*6
## grid 3
:set arabicshape |
]])
else
screen:expect([[
{5:·················ﺔﻴَّﺑِﺮَﻌَﻟﺍ x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å :senil 2 --^+}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*6
:set arabicshape |
]])
end
@@ -1362,22 +1030,12 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
ﺔﻴَّﺑِﺮَﻌَ^ﻟﺍ x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å|
txet eröm|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*5
## grid 3
:set arabicshape |
]])
@@ -1385,11 +1043,7 @@ describe("folded lines", function()
screen:expect([[
ﺔﻴَّﺑِﺮَﻌَ^ﻟﺍ x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å|
txet eröm|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*5
:set arabicshape |
]])
end
@@ -1398,22 +1052,12 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
ةيَّبِرَعَ^لا x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å|
txet eröm|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*5
## grid 3
:set noarabicshape |
]])
@@ -1421,11 +1065,7 @@ describe("folded lines", function()
screen:expect([[
ةيَّبِرَعَ^لا x̨̣̘̫̲͚͎̎͂̀̂͛͛̾͢ 语 å|
txet eröm|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*5
:set noarabicshape |
]])
end
@@ -1444,10 +1084,7 @@ describe("folded lines", function()
## grid 1
[2:---------------------------------------------]|
{2:[No Name] }|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*4
{3:[Command Line] }|
[3:---------------------------------------------]|
## grid 2
@@ -1479,10 +1116,7 @@ describe("folded lines", function()
## grid 1
[2:---------------------------------------------]|
{2:[No Name] }|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
- [4:---------------------------------------------]|
+ [4:---------------------------------------------]|*4
{3:[Command Line] }|
[3:---------------------------------------------]|
## grid 2
@@ -1492,8 +1126,7 @@ describe("folded lines", function()
## grid 4
{1::}{5:^+-- 2 lines: set foldmethod=manual·········}|
{1::} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]])
else
screen:expect([[
@@ -1501,8 +1134,7 @@ describe("folded lines", function()
{2:[No Name] }|
{1::}{5:^+-- 2 lines: set foldmethod=manual·········}|
{1::} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[Command Line] }|
: |
]])
@@ -1512,34 +1144,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
: |
]])
else
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
: |
]])
end
@@ -1550,10 +1166,7 @@ describe("folded lines", function()
## grid 1
[2:---------------------------------------------]|
{2:[No Name] }|
- [5:---------------------------------------------]|
- [5:---------------------------------------------]|
- [5:---------------------------------------------]|
- [5:---------------------------------------------]|
+ [5:---------------------------------------------]|*4
{3:[Command Line] }|
[3:---------------------------------------------]|
## grid 2
@@ -1585,10 +1198,7 @@ describe("folded lines", function()
## grid 1
[2:---------------------------------------------]|
{2:[No Name] }|
- [5:---------------------------------------------]|
- [5:---------------------------------------------]|
- [5:---------------------------------------------]|
- [5:---------------------------------------------]|
+ [5:---------------------------------------------]|*4
{3:[Command Line] }|
[3:---------------------------------------------]|
## grid 2
@@ -1597,18 +1207,14 @@ describe("folded lines", function()
/ |
## grid 5
{1:/}{5:^+-- 3 lines: alpha·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]])
else
screen:expect([[
|
{2:[No Name] }|
{1:/}{5:^+-- 3 lines: alpha·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3:[Command Line] }|
/ |
]])
@@ -1628,22 +1234,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:^+-- 2 lines: line 1·························}|
line 3 |
line 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -1652,10 +1249,7 @@ describe("folded lines", function()
{5:^+-- 2 lines: line 1·························}|
line 3 |
line 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -1664,22 +1258,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+}{5:^+-- 2 lines: line 1························}|
{7: }line 3 |
{7: }line 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -1688,10 +1273,7 @@ describe("folded lines", function()
{7:+}{5:^+-- 2 lines: line 1························}|
{7: }line 3 |
{7: }line 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -1699,22 +1281,13 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+}{5:^+-- 2 lines: line 1························}|
{7: }line 3 |
{7: }line 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]], unchanged=true}
@@ -1723,10 +1296,7 @@ describe("folded lines", function()
{7:+}{5:^+-- 2 lines: line 1························}|
{7: }line 3 |
{7: }line 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]], unchanged=true}
end
@@ -1736,34 +1306,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+}{5:^+-- 4 lines: line 1························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]])
else
screen:expect([[
{7:+}{5:^+-- 4 lines: line 1························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end
@@ -1771,34 +1325,18 @@ describe("folded lines", function()
command("set foldcolumn=auto:1")
if multigrid then screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+}{5:^+-- 4 lines: line 1························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]], unchanged=true}
else
screen:expect{grid=[[
{7:+}{5:^+-- 4 lines: line 1························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]], unchanged=true}
end
@@ -1809,34 +1347,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{7:+ }{5:^+-- 4 lines: line 1·······················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]])
else
screen:expect([[
{7:+ }{5:^+-- 4 lines: line 1·······················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end
@@ -1854,34 +1376,18 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:^---------------------------------------------}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]])
else
screen:expect([[
{5:^---------------------------------------------}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end
@@ -1904,17 +1410,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*11
[3:---------------------------------------------]|
## grid 2
|
@@ -1926,8 +1422,7 @@ describe("folded lines", function()
Line7 |
{5:+-- 2 lines: Line8··························}|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
]])
@@ -1942,8 +1437,7 @@ describe("folded lines", function()
Line7 |
{5:+-- 2 lines: Line8··························}|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end
@@ -1957,13 +1451,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{8: 1 }^This is a |
@@ -1971,8 +1459,7 @@ describe("folded lines", function()
{8: 3 }{5:+-- 2 lines: sentence composed by·······}|
{8: 5 }in his cave. |
{8: 6 } |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
]])
@@ -1983,8 +1470,7 @@ describe("folded lines", function()
{8: 3 }{5:+-- 2 lines: sentence composed by·······}|
{8: 5 }in his cave. |
{8: 6 } |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end
@@ -1993,13 +1479,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{8: 1 }^his is a |
@@ -2007,8 +1487,7 @@ describe("folded lines", function()
{8: 3 }{5:+-- 2 lines: sentence composed by·······}|
{8: 5 }n his cave. |
{8: 6 } |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
]])
@@ -2019,8 +1498,7 @@ describe("folded lines", function()
{8: 3 }{5:+-- 2 lines: sentence composed by·······}|
{8: 5 }n his cave. |
{8: 6 } |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end
@@ -2040,13 +1518,7 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:^+-- 2 lines: line 1·························}|
@@ -2054,8 +1526,7 @@ describe("folded lines", function()
line 3 |
line 4 |
virt_line below line 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
]], win_viewport={
@@ -2068,8 +1539,7 @@ describe("folded lines", function()
line 3 |
line 4 |
virt_line below line 4 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end
@@ -2078,22 +1548,12 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:+-- 2 lines: line 1·························}|
{5:^+-- 2 lines: line 3·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
]], win_viewport={
@@ -2103,11 +1563,7 @@ describe("folded lines", function()
screen:expect([[
{5:+-- 2 lines: line 1·························}|
{5:^+-- 2 lines: line 3·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end
@@ -2117,13 +1573,7 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
virt_line above line 1 |
@@ -2168,13 +1618,7 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
line 1 |
@@ -2206,13 +1650,7 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
line 2 |
@@ -2220,8 +1658,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
]], win_viewport={
@@ -2234,8 +1671,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end
@@ -2244,22 +1680,14 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
virt_line below line 2 |
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
]], win_viewport={
@@ -2271,9 +1699,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end
@@ -2282,22 +1708,13 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]], win_viewport={
@@ -2308,10 +1725,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -2320,22 +1734,12 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
]], win_viewport={
@@ -2345,11 +1749,7 @@ describe("folded lines", function()
screen:expect([[
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end
@@ -2358,22 +1758,11 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
|
]], win_viewport={
@@ -2382,12 +1771,7 @@ describe("folded lines", function()
else
screen:expect([[
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end
@@ -2396,22 +1780,14 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
virt_line below line 2 |
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
]], win_viewport={
@@ -2423,9 +1799,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^line 5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end
@@ -2434,22 +1808,14 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
virt_line below line 2 |
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^l{16:ine 5} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{11:-- VISUAL LINE --} |
]], win_viewport={
@@ -2461,9 +1827,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^l{16:ine 5} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{11:-- VISUAL LINE --} |
]])
end
@@ -2472,22 +1836,13 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^l{16:ine 5} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
{11:-- VISUAL LINE --} |
]], win_viewport={
@@ -2498,10 +1853,7 @@ describe("folded lines", function()
more virt_line below line 2 |
{5:+-- 2 lines: line 3·························}|
^l{16:ine 5} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{11:-- VISUAL LINE --} |
]])
end
@@ -2510,22 +1862,12 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{5:+-- 2 lines: line 3·························}|
{16:line }^5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
{11:-- VISUAL LINE --} |
]], win_viewport={
@@ -2535,11 +1877,7 @@ describe("folded lines", function()
screen:expect([[
{5:+-- 2 lines: line 3·························}|
{16:line }^5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{11:-- VISUAL LINE --} |
]])
end
@@ -2549,10 +1887,7 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*4
{3:[No Name] [+] }|
[4:---------------------------------------------]|
{2:[No Name] [+] }|
@@ -2587,10 +1922,7 @@ describe("folded lines", function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*4
{3:[No Name] [+] }|
[4:---------------------------------------------]|
{2:[No Name] [+] }|
@@ -2640,13 +1972,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{14:" foofoofoofoofo}ofoo |
@@ -2654,8 +1980,7 @@ describe("folded lines", function()
{14:" barbarbarbarba}rbar |
{15:+-- 3 lines: " }{5:口···························}|
{14:" bazbazbazbazb}^azbaz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL BLOCK --} |
]])
@@ -2666,8 +1991,7 @@ describe("folded lines", function()
{14:" barbarbarbarba}rbar |
{15:+-- 3 lines: " }{5:口···························}|
{14:" bazbazbazbazb}^azbaz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL BLOCK --} |
]])
end
@@ -2676,13 +2000,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{14:" foofoofoofoofoo}foo |
@@ -2690,8 +2008,7 @@ describe("folded lines", function()
{14:" barbarbarbarbar}bar |
{15:+-- 3 lines: " 口}{5:···························}|
{14:" bazbazbazbazba}^zbaz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL BLOCK --} |
]])
@@ -2702,8 +2019,7 @@ describe("folded lines", function()
{14:" barbarbarbarbar}bar |
{15:+-- 3 lines: " 口}{5:···························}|
{14:" bazbazbazbazba}^zbaz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL BLOCK --} |
]])
end
@@ -2712,13 +2028,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{14:" foofoofoofoofoof}oo |
@@ -2726,8 +2036,7 @@ describe("folded lines", function()
{14:" barbarbarbarbarb}ar |
{15:+-- 3 lines: " 口}{5:···························}|
{14:" bazbazbazbazbaz}^baz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL BLOCK --} |
]])
@@ -2738,8 +2047,7 @@ describe("folded lines", function()
{14:" barbarbarbarbarb}ar |
{15:+-- 3 lines: " 口}{5:···························}|
{14:" bazbazbazbazbaz}^baz |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL BLOCK --} |
]])
end
@@ -2748,13 +2056,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{14:" foofoofoofoofoofoo} |
@@ -2762,8 +2064,7 @@ describe("folded lines", function()
{14:" barbarbarbarbarbar} |
{15:+-- 3 lines: " 口··}{5:·························}|
{14:" bazbazbazbazbazba}^z |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL BLOCK --} |
]])
@@ -2774,8 +2075,7 @@ describe("folded lines", function()
{14:" barbarbarbarbarbar} |
{15:+-- 3 lines: " 口··}{5:·························}|
{14:" bazbazbazbazbazba}^z |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL BLOCK --} |
]])
end
@@ -2784,13 +2084,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
" foofoofoofoofo{14:ofoo} |
@@ -2798,8 +2092,7 @@ describe("folded lines", function()
" barbarbarbarba{14:rbar} |
{5:+-- 3 lines: " }{15:口··}{5:·························}|
" bazbazbazbazba^z{14:baz} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL BLOCK --} |
]])
@@ -2810,8 +2103,7 @@ describe("folded lines", function()
" barbarbarbarba{14:rbar} |
{5:+-- 3 lines: " }{15:口··}{5:·························}|
" bazbazbazbazba^z{14:baz} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL BLOCK --} |
]])
end
@@ -2820,13 +2112,7 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
" foofoofoofoofoo{14:foo} |
@@ -2834,8 +2120,7 @@ describe("folded lines", function()
" barbarbarbarbar{14:bar} |
{5:+-- 3 lines: " }{15:口··}{5:·························}|
" bazbazbazbazbaz^b{14:az} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL BLOCK --} |
]])
@@ -2846,8 +2131,7 @@ describe("folded lines", function()
" barbarbarbarbar{14:bar} |
{5:+-- 3 lines: " }{15:口··}{5:·························}|
" bazbazbazbazbaz^b{14:az} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL BLOCK --} |
]])
end
@@ -2864,22 +2148,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{2:line} 1 |
{5:+-- 2 lines: line 2·························}|
{6:line} 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
/line^ |
]])
@@ -2888,10 +2163,7 @@ describe("folded lines", function()
{2:line} 1 |
{5:+-- 2 lines: line 2·························}|
{6:line} 4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
/line^ |
]])
end
@@ -2900,22 +2172,13 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
- [2:---------------------------------------------]|
+ [2:---------------------------------------------]|*7
[3:---------------------------------------------]|
## grid 2
{6:line} 1 |
{5:+-- 2 lines: line 2·························}|
{6:line} ^4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -2924,10 +2187,7 @@ describe("folded lines", function()
{6:line} 1 |
{5:+-- 2 lines: line 2·························}|
{6:line} ^4 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -2953,20 +2213,12 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*6
[3:------------------------------]|
## grid 2
{7: }This is a |
{7:+ }{4:^▶}{13:-}{17: }{18:valid English}{13:·····}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]])
@@ -2974,10 +2226,7 @@ describe("folded lines", function()
screen:expect([[
{7: }This is a |
{7:+ }{4:^▶}{13:-}{17: }{18:valid English}{13:·····}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end
@@ -2987,20 +2236,14 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*6
[3:------------------------------]|
## grid 2
{7: }This is a |
{7:- }valid English |
{7:│+ }{4:▶}{5:--}{19: }{18:sentence composed }|
{7:│+ }{4:^▶}{13:--}{17: }{18:in his cave.}{13:······}|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
]])
@@ -3010,8 +2253,7 @@ describe("folded lines", function()
{7:- }valid English |
{7:│+ }{4:▶}{5:--}{19: }{18:sentence composed }|
{7:│+ }{4:^▶}{13:--}{17: }{18:in his cave.}{13:······}|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end
@@ -3023,20 +2265,14 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*6
[3:------------------------------]|
## grid 2
{7: }This is a |
{7:- }^v{14:alid English} |
{7:│+ }{4:▶}{15:--}{19: }{20:sentence composed }|
{7:│+ }{4:▶}{15:--}{19: }{20:in his cave.}{15:······}|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{11:-- VISUAL LINE --} |
]])
@@ -3046,8 +2282,7 @@ describe("folded lines", function()
{7:- }^v{14:alid English} |
{7:│+ }{4:▶}{15:--}{19: }{20:sentence composed }|
{7:│+ }{4:▶}{15:--}{19: }{20:in his cave.}{15:······}|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{11:-- VISUAL LINE --} |
]])
end
@@ -3056,20 +2291,14 @@ describe("folded lines", function()
if multigrid then
screen:expect([[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*6
[3:------------------------------]|
## grid 2
a si sihT{7: }|
{14:hsilgnE dila}^v{7: -}|
{20: desopmoc ecnetnes}{19: }{15:--}{4:▶}{7: +│}|
{15:······}{20:.evac sih ni}{19: }{15:--}{4:▶}{7: +│}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
## grid 3
{11:-- VISUAL LINE --} |
]])
@@ -3079,8 +2308,7 @@ describe("folded lines", function()
{14:hsilgnE dila}^v{7: -}|
{20: desopmoc ecnetnes}{19: }{15:--}{4:▶}{7: +│}|
{15:······}{20:.evac sih ni}{19: }{15:--}{4:▶}{7: +│}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
{11:-- VISUAL LINE --} |
]])
end
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 7776e024b0..f5df11115c 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -58,9 +58,7 @@ describe('highlight: `:syntax manual`', function()
feed_command('bp')
screen:expect([[
{1:^echo} 1 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
:bp |
]])
end)
@@ -82,9 +80,7 @@ describe('highlight: `:syntax manual`', function()
eq("Xtest-functional-ui-highlight.tmp.vim", eval("fnamemodify(bufname('%'), ':t')"))
screen:expect([[
{1:^echo} 1 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
:silent bp |
]])
end)
@@ -116,17 +112,10 @@ describe('highlight defaults', function()
feed_command('sp', 'vsp', 'vsp')
screen:expect([[
^ │ │ |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{1:[No Name] }{2:[No Name] [No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:[No Name] }|
:vsp |
]])
@@ -134,17 +123,10 @@ describe('highlight defaults', function()
feed('<c-w>j')
screen:expect([[
│ │ |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{2:[No Name] [No Name] [No Name] }|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{1:[No Name] }|
:vsp |
]])
@@ -154,51 +136,30 @@ describe('highlight defaults', function()
feed('<c-w>k<c-w>l')
screen:expect([[
│^ │ |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{2:[No Name] }{1:[No Name] }{2:[No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:[No Name] }|
:vsp |
]])
feed('<c-w>l')
screen:expect([[
│ │^ |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{2:[No Name] [No Name] }{1:[No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:[No Name] }|
:vsp |
]])
feed('<c-w>h<c-w>h')
screen:expect([[
^ │ │ |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{1:[No Name] }{2:[No Name] [No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{2:[No Name] }|
:vsp |
]])
@@ -209,8 +170,7 @@ describe('highlight defaults', function()
screen:try_resize(53, 4)
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:-- INSERT --} |
]])
end)
@@ -219,8 +179,7 @@ describe('highlight defaults', function()
screen:try_resize(53, 4)
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -243,8 +202,7 @@ describe('highlight defaults', function()
feed('i')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
-- INSERT -- |
]])
feed('<esc>')
@@ -253,8 +211,7 @@ describe('highlight defaults', function()
feed('i')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{5:-- INSERT --} |
]])
end)
@@ -266,16 +223,14 @@ describe('highlight defaults', function()
insert('neovim')
screen:expect([[
{6:neovi^m} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed_command("hi ErrorMsg term=NONE cterm=NONE ctermfg=NONE ctermbg=NONE"
.. " gui=NONE guifg=NONE guibg=NONE guisp=NONE")
screen:expect([[
neovi^m |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -284,16 +239,14 @@ describe('highlight defaults', function()
screen:try_resize(53, 4)
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed_command("hi NonTextAlt guifg=Red")
feed_command("hi! link NonText NonTextAlt")
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:hi! link NonText NonTextAlt |
]], {[0] = {foreground=Screen.colors.Red}})
end)
@@ -310,15 +263,13 @@ describe('highlight defaults', function()
insert(' ne \t o\tv im ')
screen:expect([[
ne{7:.>----.}o{7:>-----}v{7:..}im{7:*^*¬} |
- {7:~ }|
- {7:~ }|
+ {7:~ }|*2
|
]])
feed_command('highlight Whitespace gui=NONE guifg=#0000FF')
screen:expect([[
ne{8:.>----.}o{8:>-----}v{8:..}im{8:*^*}{7:¬} |
- {7:~ }|
- {7:~ }|
+ {7:~ }|*2
:highlight Whitespace gui=NONE guifg=#0000FF |
]])
end)
@@ -327,24 +278,21 @@ describe('highlight defaults', function()
screen:try_resize(53, 4)
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], hl_groups={EndOfBuffer=0, MsgSeparator=1}}
command('highlight EndOfBuffer gui=italic')
screen:expect{grid=[[
^ |
- {9:~ }|
- {9:~ }|
+ {9:~ }|*2
|
]], hl_groups={EndOfBuffer=9, MsgSeparator=1}}
command('highlight clear EndOfBuffer')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], hl_groups={EndOfBuffer=0, MsgSeparator=1}}
end)
@@ -452,11 +400,9 @@ describe('highlight', function()
foobar
]])
screen:expect{grid=[[
- {1:foobar} |
- {1:foobar} |
+ {1:foobar} |*2
^ |
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
|
]]}
@@ -465,8 +411,7 @@ describe('highlight', function()
{3:foo}{1:bar} |
{4:foo}{1:bar} |
|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
/foo^ |
]]}
feed('<cr>')
@@ -474,8 +419,7 @@ describe('highlight', function()
{4:^foo}{1:bar} |
{4:foo}{1:bar} |
|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{5:search hit...uing at TOP} |
]]}
end)
@@ -542,8 +486,7 @@ describe('highlight', function()
screen:expect([[
{1: }^ |
{1: }{2:01}{3:234 67}{2:89}{5: }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{7:[No Name] [+] }|
{1: } |
{1: }{6:-----------------------}|
@@ -583,48 +526,41 @@ describe("'listchars' highlight", function()
feed('i')
screen:expect([[
{1:^ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
-- INSERT -- |
]])
feed('abcdefg<cr>kkasdf')
screen:expect([[
abcdefg |
{1:kkasdf^ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
-- INSERT -- |
]])
feed('<esc>')
screen:expect([[
abcdefg |
{1:kkasd^f }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed_command('set nocursorline')
screen:expect([[
abcdefg |
kkasd^f |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:set nocursorline |
]])
feed('k')
screen:expect([[
abcde^fg |
kkasdf |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:set nocursorline |
]])
feed('jjji<cr><cr><cr><esc>')
screen:expect([[
kkasd |
- |
- |
+ |*2
^f |
|
]])
@@ -717,8 +653,7 @@ describe("'listchars' highlight", function()
feed('$')
screen:expect([[
{3:<}{1:r}{2:.}{1:sit}{2:.}{1:ame^t}{3:¬}{1: }|
- {4:<} |
- {4:<} |
+ {4:<} |*2
{4:~ }|
:set cursorline |
]])
@@ -741,17 +676,14 @@ describe("'listchars' highlight", function()
feed('90ia<esc>')
screen:expect([[
{0:<}aaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|*2
aaaaaaaaa^a{0:¬} |
|
]])
feed('0')
screen:expect([[
^aaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaa|*3
|
]])
end)
@@ -842,25 +774,19 @@ describe("'listchars' highlight", function()
feed('ia \t bc \t <esc>')
screen:expect([[
a bc ^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
feed_command('set listchars=space:.,eol:¬,tab:>-,extends:>,precedes:<,trail:* list')
screen:expect([[
a{2:.>-----.}bc{2:*>---*^*}{0:¬} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
feed_command('match Error /\\s\\+$/')
screen:expect([[
a{2:.>-----.}bc{3:*>---*^*}{0:¬} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -1142,8 +1068,7 @@ describe('CursorLine and CursorLineNr highlights', function()
screen:expect([[
{9:abc} |
^a{9:bc} |
- abc |
- abc |
+ abc |*2
{10:-- VISUAL LINE --} |
]])
end)
@@ -1172,9 +1097,7 @@ describe('CursorLine and CursorLineNr highlights', function()
bbbbb |
ccccc |
{1:^ddddd }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]], timeout = 100})
screen:expect({grid = [[
@@ -1182,9 +1105,7 @@ describe('CursorLine and CursorLineNr highlights', function()
{1:^bbbbb }|
ccccc |
ddddd |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]})
end)
@@ -1217,13 +1138,10 @@ describe('CursorLine and CursorLineNr highlights', function()
{1: }{7:line 1 some text }│{1: }{7:^line 1 some text }|
{1: }{3:line 2 mo}{2:Re text!}{3: }│{1: }{3:line 2 mo}{2:re text}{3: }|
{1: }{5:extra line! }│{1: }{6:----------------------}|
- {1: }extra line! │{1: }extra line! |
- {1: }extra line! │{1: }extra line! |
+ {1: }extra line! │{1: }extra line! |*2
{1: }last line ... │{1: }last line ... |
{1: } │{1: } |
- {8:~ }│{8:~ }|
- {8:~ }│{8:~ }|
- {8:~ }│{8:~ }|
+ {8:~ }│{8:~ }|*3
{4:[No Name] [+] }{9:[No Name] [+] }|
|
]])
@@ -1232,13 +1150,10 @@ describe('CursorLine and CursorLineNr highlights', function()
{1: }line 1 some text │{1: }line 1 some text |
{1: }{3:line 2 mo}{2:Re text!}{3: }│{1: }{3:line 2 mo}{2:re text}{3: }|
{1: }{5:extra line! }│{1: }{6:----------------------}|
- {1: }extra line! │{1: }extra line! |
- {1: }extra line! │{1: }extra line! |
+ {1: }extra line! │{1: }extra line! |*2
{1: }last line ... │{1: }last line ... |
{1: }{7: }│{1: }{7:^ }|
- {8:~ }│{8:~ }|
- {8:~ }│{8:~ }|
- {8:~ }│{8:~ }|
+ {8:~ }│{8:~ }|*3
{4:[No Name] [+] }{9:[No Name] [+] }|
|
]])
@@ -1251,13 +1166,10 @@ describe('CursorLine and CursorLineNr highlights', function()
{1: }line 1 some text │{1: }line 1 some text |
{1: }{11:line 2 mo}{12:Re text!}{11: }│{1: }{11:^line 2 mo}{12:re text}{11: }|
{1: }{5:extra line! }│{1: }{6:----------------------}|
- {1: }extra line! │{1: }extra line! |
- {1: }extra line! │{1: }extra line! |
+ {1: }extra line! │{1: }extra line! |*2
{1: }last line ... │{1: }last line ... |
{1: } │{1: } |
- {8:~ }│{8:~ }|
- {8:~ }│{8:~ }|
- {8:~ }│{8:~ }|
+ {8:~ }│{8:~ }|*3
{4:[No Name] [+] }{9:[No Name] [+] }|
|
]], {
@@ -1308,12 +1220,7 @@ describe('CursorLine and CursorLineNr highlights', function()
{1: }{6: 1 }{5:^foo }│{1: }{6: 2 }{5:foo }|
{1: }{9: 2 }foo │{1: }{9: 3 }foo |
{1: }{9: 3 }bar │{1: }{9: 4 }bar |
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
+ {7:~ }│{7:~ }|*6
{8:[No Name] [+] }{3:[No Name] [+] }|
|
]])
@@ -1323,12 +1230,7 @@ describe('CursorLine and CursorLineNr highlights', function()
{1: }{6: 1 }^foo │{1: }{6: 2 }{5:foo }|
{1: }{9: 2 }foo │{1: }{9: 3 }foo |
{1: }{9: 3 }bar │{1: }{9: 4 }bar |
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
- {7:~ }│{7:~ }|
+ {7:~ }│{7:~ }|*6
{8:[No Name] [+] }{3:[No Name] [+] }|
|
]])
@@ -1357,44 +1259,28 @@ describe('CursorColumn highlight', function()
screen:expect([[
1234567{1:8}9 |
a ^ b |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
|
]])
feed('i')
screen:expect([[
1{1:2}3456789 |
a^ b |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
{3:-- INSERT --} |
]])
feed('<C-O>')
screen:expect([[
1234567{1:8}9 |
a ^ b |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
{3:-- (insert) --} |
]])
feed('i')
screen:expect([[
1{1:2}3456789 |
a^ b |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
{3:-- INSERT --} |
]])
end)
@@ -1417,9 +1303,7 @@ describe('CursorColumn highlight', function()
bbbb{1:b} |
cccc{1:c} |
dddd^d |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]], timeout = 100})
screen:expect({grid = [[
@@ -1427,9 +1311,7 @@ describe('CursorColumn highlight', function()
{1:b}bbbb |
{1:c}cccc |
{1:d}dddd |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]})
end)
@@ -1472,16 +1354,12 @@ describe('ColorColumn highlight', function()
{4: 1 }11{1:1}11111{1:1}1 |
{3: 2 }22{1:2}22222{1:2}22 |
{3: 3 }33{1:3}33333{1:3}3 |
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*3
{8:X }|
{4: 1 }^11{1:1}11111{1:1}1 |
{3: 2 }22{1:2}22222{1:2}22 |
{3: 3 }33{1:3}33333{1:3}3 |
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*3
{7:X }|
|
]])
@@ -1496,18 +1374,7 @@ describe('ColorColumn highlight', function()
screen:expect([[
^The quick brown fox jumped over the {1: }|
{1: } {1:l}azy dogs |
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*12
|
]])
end)
@@ -1521,18 +1388,7 @@ describe('ColorColumn highlight', function()
screen:expect([[
^The quick brown fox jumped over the laz{1:y}|
{6:+}{5:+}{6:+}{5:>\} dogs |
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*12
|
]])
end)
@@ -1631,17 +1487,13 @@ describe("MsgSeparator highlight and msgsep fillchar", function()
feed_command("hi MsgArea guibg=Gray")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{6: }|
]]}
feed(":ls")
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{6::ls^ }|
]]}
feed(":<cr>")
@@ -1659,17 +1511,13 @@ describe("MsgSeparator highlight and msgsep fillchar", function()
feed_command("hi MsgSeparator blend=30 guibg=Magenta")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{8::hi}{9: }{8:MsgSeparator}{9: }{8:blend=30}{9: }{8:guibg=Magenta}{9: }|
]]}
feed(":ls")
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{8::ls}{9:^ }|
]]}
feed("<cr>")
@@ -1775,9 +1623,7 @@ describe("'number' and 'relativenumber' highlight", function()
{1: 2 }bbbbb |
{1: 1 }ccccc |
{1: 0 }^ddddd |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]], timeout = 100})
screen:expect({grid = [[
@@ -1785,9 +1631,7 @@ describe("'number' and 'relativenumber' highlight", function()
{1: 1 }bbbbb |
{1: 2 }ccccc |
{1: 3 }ddddd |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]]})
end)
@@ -1844,8 +1688,7 @@ describe("'winhighlight' highlight", function()
command("set winhl=Normal:Background1")
screen:expect([[
{1:a^a }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] [+] }|
aa |
{0:~ }|
@@ -1856,8 +1699,7 @@ describe("'winhighlight' highlight", function()
command("enew")
screen:expect([[
{1:^ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] }|
aa |
{0:~ }|
@@ -1874,18 +1716,13 @@ describe("'winhighlight' highlight", function()
command('setlocal winhl=Normal:Background1')
screen:expect([[
{1: ^aa}|
- {2: ~}|
- {2: ~}|
- {2: ~}|
- {2: ~}|
+ {2: ~}|*4
|
]])
command('botright vsplit')
screen:expect([[
{1: aa│ ^aa}|
- {2: ~}{1:│}{2: ~}|
- {2: ~}{1:│}{2: ~}|
- {2: ~}{1:│}{2: ~}|
+ {2: ~}{1:│}{2: ~}|*3
{4:[No Name] [+] }{3:[No Name] [+] }|
|
]])
@@ -1895,12 +1732,7 @@ describe("'winhighlight' highlight", function()
command("set winhl=Normal:Background1")
screen:expect([[
{1:^ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*6
|
]])
@@ -1908,12 +1740,7 @@ describe("'winhighlight' highlight", function()
eq('xxx:yyy', eval('&winhl'))
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]]}
end)
@@ -1922,24 +1749,14 @@ describe("'winhighlight' highlight", function()
command("set winhl=EndOfBuffer:Background1")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]]}
command("set winhl=Normal:ErrorMsg")
screen:expect{grid=[[
{15:^ }|
- {29:~ }|
- {29:~ }|
- {29:~ }|
- {29:~ }|
- {29:~ }|
- {29:~ }|
+ {29:~ }|*6
|
]]}
end)
@@ -1950,8 +1767,7 @@ describe("'winhighlight' highlight", function()
command("setlocal winhl=Normal:Background1")
screen:expect([[
{1:a^a }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] [+] }|
aa |
{0:~ }|
@@ -1962,8 +1778,7 @@ describe("'winhighlight' highlight", function()
command("enew")
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
aa |
{0:~ }|
@@ -1974,8 +1789,7 @@ describe("'winhighlight' highlight", function()
command("bnext")
screen:expect([[
{1:^aa }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] [+] }|
aa |
{0:~ }|
@@ -1990,8 +1804,7 @@ describe("'winhighlight' highlight", function()
command("split")
screen:expect([[
{1:^ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] }|
{5: }|
{6:~ }|
@@ -2002,8 +1815,7 @@ describe("'winhighlight' highlight", function()
feed("<c-w><c-w>")
screen:expect([[
{5: }|
- {6:~ }|
- {6:~ }|
+ {6:~ }|*2
{4:[No Name] }|
{1:^ }|
{2:~ }|
@@ -2014,8 +1826,7 @@ describe("'winhighlight' highlight", function()
feed("<c-w><c-w>")
screen:expect([[
{1:^ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] }|
{5: }|
{6:~ }|
@@ -2030,8 +1841,7 @@ describe("'winhighlight' highlight", function()
command("split")
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
{7: }|
{8:~ }|
@@ -2042,8 +1852,7 @@ describe("'winhighlight' highlight", function()
command("wincmd w")
screen:expect([[
{7: }|
- {8:~ }|
- {8:~ }|
+ {8:~ }|*2
{4:[No Name] }|
^ |
{0:~ }|
@@ -2056,8 +1865,7 @@ describe("'winhighlight' highlight", function()
command("set winhl=Normal:Background1")
screen:expect([[
{7: }|
- {8:~ }|
- {8:~ }|
+ {8:~ }|*2
{4:[No Name] }|
{1:^ }|
{2:~ }|
@@ -2068,8 +1876,7 @@ describe("'winhighlight' highlight", function()
command("wincmd w")
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
{1: }|
{2:~ }|
@@ -2081,8 +1888,7 @@ describe("'winhighlight' highlight", function()
command("set winhl=Normal:Background1,NormalNC:Background2")
screen:expect([[
{7: }|
- {8:~ }|
- {8:~ }|
+ {8:~ }|*2
{4:[No Name] }|
{1:^ }|
{2:~ }|
@@ -2093,8 +1899,7 @@ describe("'winhighlight' highlight", function()
command("wincmd w")
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
{5: }|
{6:~ }|
@@ -2108,8 +1913,7 @@ describe("'winhighlight' highlight", function()
command("setlocal winhl=Normal:FancyGroup") -- does not yet exist
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
|
{0:~ }|
@@ -2120,8 +1924,7 @@ describe("'winhighlight' highlight", function()
command("hi FancyGroup guibg=#FF8800") -- nice orange
screen:expect{grid=[[
{30:^ }|
- {31:~ }|
- {31:~ }|
+ {31:~ }|*2
{3:[No Name] }|
|
{0:~ }|
@@ -2144,10 +1947,7 @@ describe("'winhighlight' highlight", function()
{9: 1 } ^Lorem ipsum do|
{9: } {0:↪}lor sit |
{9: } {0:↪}amet{0:-} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
@@ -2156,10 +1956,7 @@ describe("'winhighlight' highlight", function()
{10: 1 }{1: ^Lorem ipsum do}|
{10: }{1: }{2:↪}{1:lor sit }|
{10: }{1: }{2:↪}{1:amet}{2:-}{1: }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*4
|
]])
@@ -2168,12 +1965,7 @@ describe("'winhighlight' highlight", function()
feed('3w')
screen:expect([[
{10: 1 }{2:❮}{1: dolor ^sit ame}{2:❯}|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*6
|
]])
end)
@@ -2188,11 +1980,7 @@ describe("'winhighlight' highlight", function()
screen:expect([[
{25:the} {26:foobar} was {26:fooba}|
{26:^r} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
@@ -2202,11 +1990,7 @@ describe("'winhighlight' highlight", function()
screen:expect([[
{27:the}{1: }{26:foobar}{1: was }{26:fooba}|
{26:^r}{1: }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*5
|
]])
end)
@@ -2222,8 +2006,7 @@ describe("'winhighlight' highlight", function()
screen:expect([[
^r{5:#}a{15:^@} |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[No Name] [+] }|
r{19:#}a{16:^@} |
{0:~ }|
@@ -2261,22 +2044,14 @@ describe("'winhighlight' highlight", function()
screen:expect([[
{20: No Name] }{15: No Name]}{20:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
command("tabnext")
screen:expect([[
{21: No Name] }{1: No Name]}{20:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end)
@@ -2288,8 +2063,7 @@ describe("'winhighlight' highlight", function()
..'PmenuSbar:ErrorMsg,PmenuThumb:Normal')
screen:expect([[
word wording word^y |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] [+] }|
word wording wordy |
{0:~ }|
@@ -2329,8 +2103,7 @@ describe("'winhighlight' highlight", function()
command('set winhl=CursorLine:Background1')
screen:expect{grid=[[
{28: 1 }{1:^ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
{28: 1 }{18: }|
{0:~ }|
@@ -2341,8 +2114,7 @@ describe("'winhighlight' highlight", function()
command('set winhl=CursorLineNr:Background2,CursorLine:Background1')
screen:expect{grid=[[
{5: 1 }{1:^ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
{28: 1 }{18: }|
{0:~ }|
@@ -2353,8 +2125,7 @@ describe("'winhighlight' highlight", function()
feed('<c-w>w')
screen:expect{grid=[[
{5: 1 }{1: }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{4:[No Name] }|
{28: 1 }{18:^ }|
{0:~ }|
@@ -2368,8 +2139,7 @@ describe("'winhighlight' highlight", function()
command('split')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1:[No Name] }|
|
{0:~ }|
@@ -2405,11 +2175,7 @@ describe("'winhighlight' highlight", function()
screen:expect([[
{25:the} {26:foobar} was {26:fooba}|
{26:^r} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
@@ -2431,8 +2197,7 @@ describe("'winhighlight' highlight", function()
command('split | set winhl=Normal:ErrorMsg | set winhl=')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
|
{0:~ }|
@@ -2495,8 +2260,7 @@ describe("'winhighlight' highlight", function()
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
|
{0:~ }|
@@ -2539,56 +2303,28 @@ describe('highlight namespaces', function()
it('can be used globally', function()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]]}
meths.set_hl_ns(ns1)
screen:expect{grid=[[
{2:^ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*8
|
]]}
meths.set_hl_ns(ns2)
screen:expect{grid=[[
{4:^ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*8
|
]]}
meths.set_hl_ns(0)
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]]}
end)
@@ -2619,28 +2355,14 @@ describe('highlight namespaces', function()
it('redraws correctly when ns=0', function()
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]]}
meths.set_hl(0, 'EndOfBuffer', {fg='#333333'})
screen:expect{grid=[[
^ |
- {8:~ }|
- {8:~ }|
- {8:~ }|
- {8:~ }|
- {8:~ }|
- {8:~ }|
- {8:~ }|
- {8:~ }|
+ {8:~ }|*8
|
]]}
end)
@@ -2663,8 +2385,7 @@ describe('highlight namespaces', function()
command('highlight Ignore')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{6: }|
|
Ignore {8:xxx} {9:ctermf}|
diff --git a/test/functional/ui/hlstate_spec.lua b/test/functional/ui/hlstate_spec.lua
index b35d61744f..e36309f32a 100644
--- a/test/functional/ui/hlstate_spec.lua
+++ b/test/functional/ui/hlstate_spec.lua
@@ -36,11 +36,7 @@ describe('ext_hlstate detailed highlights', function()
screen:expect([[
these are {1:some} lines |
^wi{2:th }{4:co}{3:lorful text} |
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*5
{8:search hit BOTTOM, continuing at TOP}{7: }|
]], {
[1] = {{foreground = Screen.colors.Magenta},
@@ -77,11 +73,7 @@ describe('ext_hlstate detailed highlights', function()
screen:expect([[
^ {1:│} |
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
+ {2:~ }{1:│}{2:~ }|*5
{3:[No Name] }{4:[No Name] }|
{7: }|
]])
@@ -89,11 +81,7 @@ describe('ext_hlstate detailed highlights', function()
command("hi clear StatusLine | hi clear StatuslineNC")
screen:expect([[
^ {1:│} |
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
+ {2:~ }{1:│}{2:~ }|*5
{5:[No Name] }{6:[No Name] }|
{7: }|
]])
@@ -102,11 +90,7 @@ describe('ext_hlstate detailed highlights', function()
command("wincmd w")
screen:expect([[
{1:│}^ |
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
- {2:~ }{1:│}{2:~ }|
+ {2:~ }{1:│}{2:~ }|*5
{6:[No Name] }{5:[No Name] }|
{7: }|
]])
@@ -136,8 +120,7 @@ describe('ext_hlstate detailed highlights', function()
-- NormalNC is not applied if not set, to avoid spurious redraws
screen:expect([[
{1: 1 }^ |
- {2:~ }|
- {2:~ }|
+ {2:~ }|*2
{3:[No Name] }|
{1: 1 } |
{2:~ }|
@@ -148,8 +131,7 @@ describe('ext_hlstate detailed highlights', function()
command("set winhl=LineNr:ErrorMsg")
screen:expect{grid=[[
{13: 1 }^ |
- {14:~ }|
- {14:~ }|
+ {14:~ }|*2
{3:[No Name] }|
{1: 1 } |
{2:~ }|
@@ -160,8 +142,7 @@ describe('ext_hlstate detailed highlights', function()
command("set winhl=Normal:MsgSeparator,NormalNC:Statement")
screen:expect([[
{7: 1 }{6:^ }|
- {8:~ }|
- {8:~ }|
+ {8:~ }|*2
{3:[No Name] }|
{1: 1 } |
{2:~ }|
@@ -172,8 +153,7 @@ describe('ext_hlstate detailed highlights', function()
command("wincmd w")
screen:expect([[
{10: 1 }{9: }|
- {11:~ }|
- {11:~ }|
+ {11:~ }|*2
{4:[No Name] }|
{1: 1 }^ |
{2:~ }|
@@ -198,11 +178,7 @@ describe('ext_hlstate detailed highlights', function()
screen:expect([[
^tty ready |
{1: } |
- |
- |
- |
- |
- |
+ |*5
{7: }|
]])
@@ -217,10 +193,7 @@ describe('ext_hlstate detailed highlights', function()
^tty ready |
x {5:y z} |
{1: } |
- |
- |
- |
- |
+ |*4
{7: }|
]])
else
@@ -228,10 +201,7 @@ describe('ext_hlstate detailed highlights', function()
^tty ready |
x {2:y }{3:z} |
{1: } |
- |
- |
- |
- |
+ |*4
{7: }|
]])
end
@@ -242,22 +212,14 @@ describe('ext_hlstate detailed highlights', function()
screen:expect([[
^tty ready |
x {6:y}{5: z} |
- |
- |
- |
- |
- |
+ |*5
{7: }|
]])
else
screen:expect([[
^tty ready |
x {4:y}{2: }{3:z} |
- |
- |
- |
- |
- |
+ |*5
{7: }|
]])
end
@@ -274,24 +236,14 @@ describe('ext_hlstate detailed highlights', function()
})
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{3: }|
]])
command("hi NonText guifg=Red gui=reverse ctermfg=Green cterm=italic")
screen:expect([[
^ |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*6
{3: }|
]])
diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua
index 351abcea2c..7a7c3c2945 100644
--- a/test/functional/ui/inccommand_spec.lua
+++ b/test/functional/ui/inccommand_spec.lua
@@ -143,9 +143,7 @@ describe(":substitute, 'inccommand' preserves", function()
screen:expect([[
BAC |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{11: }|
:ls |
1 %a + "[No Name]" |
@@ -581,12 +579,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
two lines |
^ |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
|
]])
command("set undolevels=1")
@@ -622,12 +615,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
else
@@ -635,12 +623,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
end
@@ -674,12 +657,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
two line^s |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
else
@@ -687,12 +665,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
two line^s |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
end
@@ -722,12 +695,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
else
@@ -735,12 +703,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
end
@@ -764,12 +727,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
else
@@ -777,12 +735,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
end
@@ -803,12 +756,7 @@ describe(":substitute, 'inccommand' preserves undo", function()
^LInc substitution on|
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
Already ...t change |
]])
end
@@ -837,11 +785,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] }|
|2| {12:tw}o lines |
|4| {12:tw}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw^ |
]])
@@ -870,15 +814,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
:silent tabedit %s/tw/to^ |
]])
feed('<Esc>')
@@ -902,11 +838,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| {12:to}o lines |
|4| {12:to}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:topleft %s/tw/to^ |
]])
@@ -924,11 +856,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| {12:to}o lines |
|4| {12:to}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:topleft vert %s/tw/to^ |
]])
@@ -947,11 +875,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| {12:tw}o lines |
|4| {12:tw}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw^ |
]])
@@ -968,11 +892,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| o lines |
|4| o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw/^ |
]])
@@ -987,11 +907,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| {12:x}o lines |
|4| {12:x}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw/x^ |
]])
@@ -1006,11 +922,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| o lines |
|4| o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw/^ |
]])
@@ -1028,11 +940,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| {12:XX}o lines |
|4| {12:XX}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw/XX^ |
]])
@@ -1047,15 +955,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
:s/tw^ |
]])
end)
@@ -1071,15 +971,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
|
]])
@@ -1094,11 +986,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|2| {12:tw}o lines |
|4| {12:tw}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/tw^ |
]])
@@ -1116,12 +1004,7 @@ describe(":substitute, inccommand=split", function()
two lines |
{11:[No Name] [+] }|
|1| {12:123} {12:123} {12:123} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/M/123/g^ |
]])
@@ -1138,12 +1021,7 @@ describe(":substitute, inccommand=split", function()
|
{11:[No Name] [+] }|
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/Inx^ |
]])
@@ -1156,15 +1034,7 @@ describe(":substitute, inccommand=split", function()
insert(string.rep('abc abc abc\n', 20))
feed(':%s/abc/MMM/g')
screen:expect([[
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
- {12:MMM} {12:MMM} {12:MMM} |
+ {12:MMM} {12:MMM} {12:MMM} |*9
{11:[No Name] [+] }|
| 1| {12:MMM} {12:MMM} {12:MMM} |
| 2| {12:MMM} {12:MMM} {12:MMM} |
@@ -1185,15 +1055,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
^XXo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
:%s/tw/XX/g |
]])
end)
@@ -1253,15 +1115,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
two lines |
^ |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
2 matches on 2 lines |
]])
end)
@@ -1354,11 +1208,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|1| Inc subs{12:X}itution on |
|2| {12:X}wo lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:1,2s/t/X^ |
]])
@@ -1372,15 +1222,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
:echo 'foo'^ |
]])
end)
@@ -1397,11 +1239,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|1| Inc subs{12:X}itution on |
|2| {12:X}wo lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:1,2s/t/X^ |
]])
@@ -1417,11 +1255,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|1| Inc subs{12:X}itution on |
|2| {12:X}wo lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
={1:'Y'}^ |
]])
@@ -1437,11 +1271,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|1| Inc subs{12:XY}itution on |
|2| {12:XY}wo lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:1,2s/t/XY^ |
]])
@@ -1457,11 +1287,7 @@ describe(":substitute, inccommand=split", function()
{11:[No Name] [+] }|
|1| Inc subs{12:XY}itution on |
|2| {12:XY}wo lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
={1:'echo'}^ |
]])
@@ -1474,15 +1300,7 @@ describe(":substitute, inccommand=split", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
:echo^ |
]])
end)
@@ -1509,10 +1327,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
two lines |
Line *.{12:X} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%smagic/3.*/X^ |
]])
@@ -1524,10 +1339,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
two lines |
Line *.{12:X} here |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%snomagic/3.*/X^ |
]])
end)
@@ -1553,8 +1365,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11: }|
:silent tabedit %s/t|
w/to^ |
@@ -1576,10 +1387,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
{12:OKOK}o lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/tw/OKOK^ |
]])
end)
@@ -1594,10 +1402,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
{12:tw}o lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/tw^ |
]])
@@ -1608,10 +1413,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
{12:BM}o lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/tw/BM^ |
]])
@@ -1622,10 +1424,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
{12:BM}o lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/tw/BM/^ |
]])
@@ -1636,10 +1435,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
^BMo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/tw/BM/ |
]])
end)
@@ -1656,10 +1452,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:1,2s/t/X^ |
]])
@@ -1672,10 +1465,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:echo 'foo'^ |
]])
end)
@@ -1688,10 +1478,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
{12:three} lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/two/three/g|q!^ |
]])
eq(eval('v:null'), eval('v:exiting'))
@@ -1712,10 +1499,7 @@ describe("inccommand=nosplit", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:%s/^ |
]])
end)
@@ -1767,12 +1551,7 @@ describe(":substitute, 'inccommand' with a failing expression", function()
Inc substitution on |
two lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
:100s/^ |
]])
@@ -1781,12 +1560,7 @@ describe(":substitute, 'inccommand' with a failing expression", function()
Inc substitution on |
two lines |
^ |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{14:E16: Invalid range} |
]])
end
@@ -2039,31 +1813,15 @@ describe("'inccommand' split windows", function()
Inc substitution on │Inc substitution on|
{12:tw}o lines │{12:tw}o lines |
│ |
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
+ {15:~ }│{15:~ }|*11
{11:[No Name] [+] }│{15:~ }|
Inc substitution on │{15:~ }|
{12:tw}o lines │{15:~ }|
│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
+ {15:~ }│{15:~ }|*2
{10:[No Name] [+] [No Name] [+] }|
|2| {12:tw}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/tw^ |
]])
@@ -2078,31 +1836,15 @@ describe("'inccommand' split windows", function()
Inc substitution on │Inc substitution on|
{12:tw}o lines │{12:tw}o lines |
│ |
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
- {15:~ }│{15:~ }|
+ {15:~ }│{15:~ }|*11
{11:[No Name] [+] }{10:[No Name] [+] }|
Inc substitution on |
{12:tw}o lines |
|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{10:[No Name] [+] }|
|2| {12:tw}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/tw^ |
]])
@@ -2128,31 +1870,10 @@ describe("'inccommand' split windows", function()
Inc substitution on |
{12:tw}o lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*17
{11:[No Name] [+] }|
|2| {12:tw}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/tw^ |
]])
@@ -2256,9 +1977,7 @@ describe(":substitute", function()
|2|{12: A B C} |
|3|{12: 4 5 6} |
|4|{12: X} Y Z |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{10:[Preview] }|
:%s/2\_.*X^ |
]])
@@ -2268,16 +1987,10 @@ describe(":substitute", function()
1 {12:MMM} Y Z |
7 8 9 |
|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11:[No Name] [+] }|
|1| 1 {12:MMM} Y Z |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/2\_.*X/MMM^ |
]])
@@ -2293,10 +2006,7 @@ describe(":substitute", function()
|1| 1 {12:MMM} |
|2|{12: K} |
|3|{12: LLL} Y Z |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
{10:[Preview] }|
:%s/2\_.*X/MMM\rK\rLLL^ |
]])
@@ -2311,17 +2021,7 @@ describe(":substitute", function()
1 {12:MMM} Y Z |
7 8 9 |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*11
:%s/2\_.*X/MMM^ |
]])
@@ -2332,15 +2032,7 @@ describe(":substitute", function()
{12:LLL} Y Z |
7 8 9 |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*9
:%s/2\_.*X/MMM\rK\rLLL^ |
]])
end)
@@ -2355,16 +2047,11 @@ describe(":substitute", function()
{12:XLK} bdc e{12:XLK}e {12:XLK} fgl lzi{12:XLK} r|
x |
|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11:[No Name] [+] }|
|1| {12:XLK} bdc e{12:XLK}e {12:XLK} fgl lzi{12:X}|
{12:LK} r |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/a/XLK^ |
]])
@@ -2380,17 +2067,7 @@ describe(":substitute", function()
{12:XLK} bdc e{12:XLK}e {12:XLK} fgl lzi{12:XLK} r|
x |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*11
:%s/a/XLK^ |
]])
end)
@@ -2411,9 +2088,7 @@ describe(":substitute", function()
|2| {12:OKO} B C |
|3| 4 5 6 |
|4| {12:OKO} Y Z |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{10:[Preview] }|
:%s/[0-9]\n\zs[A-Z]/OKO^ |
]])
@@ -2431,14 +2106,7 @@ describe(":substitute", function()
{12:OKO} Y Z |
7 8 9 |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*8
:%s/[0-9]\n\zs[A-Z]/OKO^ |
]])
end)
@@ -2450,17 +2118,11 @@ describe(":substitute", function()
screen:expect([[
T {12:123123} {12:22}T TTT {12:090804090804} |
x |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{11:[No Name] [+] }|
|1| T {12:123123} {12:22}T TTT {12:090804090}|
{12:804} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
{10:[Preview] }|
:%s/T\([0-9]\+\)/\1\1/g^ |
]])
@@ -2473,18 +2135,7 @@ describe(":substitute", function()
screen:expect([[
T {12:123123} {12:22}T TTT {12:090804090804} |
x |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*12
:%s/T\([0-9]\+\)/\1\1/g^ |
]])
end)
@@ -2510,10 +2161,7 @@ describe(":substitute", function()
|3| afa {12:Q} |
|4|{12: }adf la;lkd {12:R} |
|5|{12: }alx |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
{10:[Preview] }|
:%s/[QR]\n^ |
]])
@@ -2527,12 +2175,7 @@ describe(":substitute", function()
{15:~ }|
{11:[No Name] [+] }|
|3| afa {12:KKK}adf la;lkd {12:KKK}alx |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/[QR]\n/KKK^ |
]])
@@ -2554,16 +2197,7 @@ describe(":substitute", function()
x |
afa {12:KKK}adf la;lkd {12:KKK}alx |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*10
:%s/[QR]\n/KKK^ |
]])
end)
@@ -2647,10 +2281,7 @@ describe(":substitute", function()
|1| {12:X¥¥} PEPPERS |
|2| {12:X¥¥} |
|3| a{12:X¥¥}¥KOL |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
{10:[Preview] }|
:%s/£.*ѫ/X¥¥^ |
]])
@@ -2685,14 +2316,7 @@ describe(":substitute", function()
£ ¥ libm |
£ ¥ |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*8
:%s/£.*ѫ/X¥¥^ |
]])
@@ -2707,11 +2331,7 @@ describe(":substitute", function()
£ ¥ libm |
£ ¥ |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*5
:%s/£.*ѫ/X¥¥\ra££ ¥^ |
]])
end)
@@ -2847,16 +2467,10 @@ describe(":substitute", function()
some{12:one} |
everything |
someone |
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11:[No Name] [+] }|
|1| some{12:one} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/\(some\)\@<=thing/one/^ |
]])
@@ -2869,16 +2483,10 @@ describe(":substitute", function()
something |
every{12:one} |
someone |
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11:[No Name] [+] }|
|2| every{12:one} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/\(some\)\@<!thing/one/^ |
]])
@@ -2890,16 +2498,10 @@ describe(":substitute", function()
{12:every}thing |
everything |
someone |
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11:[No Name] [+] }|
|1| {12:every}thing |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/some\(thing\)\@=/every/^ |
]])
@@ -2911,16 +2513,10 @@ describe(":substitute", function()
something |
everything |
{12:every}one |
- {15:~ }|
- {15:~ }|
+ {15:~ }|*2
{11:[No Name] [+] }|
|3| {12:every}one |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*6
{10:[Preview] }|
:%s/some\(thing\)\@!/every/^ |
]])
@@ -2936,9 +2532,7 @@ describe(":substitute", function()
{12:MO}o lines |
{11:[No Name] [+] }|
|2| {12:MO}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{10:[Preview] }|
:2,1s/tw/MO/g^ |
]])
@@ -2949,9 +2543,7 @@ describe(":substitute", function()
{12:MO}o lines |
{11:[No Name] [+] }|
|2| {12:MO}o lines |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{10:[Preview] }|
{13:Backwards range given, OK to swap (y/n)?}^ |
]])
@@ -2961,10 +2553,7 @@ describe(":substitute", function()
Inc substitution on |
^MOo lines |
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
{13:Backwards range given, OK to swap (y/n)?}y |
]])
end)
@@ -3010,9 +2599,7 @@ it(':substitute with inccommand, timer-induced :redraw #9777', function()
{12:ZZZ} bar baz |
bar baz fox |
bar {12:ZZZ} baz |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
{11:[No Name] [+] }|
|1| {12:ZZZ} bar baz |
|3| bar {12:ZZZ} baz |
@@ -3068,10 +2655,7 @@ it(':substitute with inccommand, does not crash if range contains invalid marks'
feed([[:'a,'bs]])
screen:expect([[
test |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:'a,'bs^ |
]])
-- v:errmsg shouldn't be set either before the first separator is typed
@@ -3079,10 +2663,7 @@ it(':substitute with inccommand, does not crash if range contains invalid marks'
feed('/')
screen:expect([[
test |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:'a,'bs/^ |
]])
end)
@@ -3132,10 +2713,7 @@ it(':substitute with inccommand, no unnecessary redraw if preview is not shown',
-- now inccommand is shown, so screen is redrawn
screen:expect([[
{12:test} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:s/test^ |
]])
end)
@@ -3152,9 +2730,7 @@ it(":substitute doesn't crash with inccommand, if undo is empty #12932", functio
feed('f')
screen:expect([[
{12:f} |
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*3
:%s/test/f^ |
]])
assert_alive()
@@ -3249,10 +2825,7 @@ it("with 'inccommand' typing invalid `={expr}` does not show error", function()
feed(':edit `=`')
screen:expect([[
|
- {15:~ }|
- {15:~ }|
- {15:~ }|
- {15:~ }|
+ {15:~ }|*4
:edit `=`^ |
]])
end)
diff --git a/test/functional/ui/inccommand_user_spec.lua b/test/functional/ui/inccommand_user_spec.lua
index da7508fad1..20e9dbdafa 100644
--- a/test/functional/ui/inccommand_user_spec.lua
+++ b/test/functional/ui/inccommand_user_spec.lua
@@ -270,13 +270,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the {1:cats} stop |
|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
:Replace text cats^ |
]])
end)
@@ -318,13 +312,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the text stop |
^ |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
|
]])
end)
@@ -342,13 +330,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the cats stop |
^ |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
:Replace text cats |
]])
end)
@@ -366,13 +348,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the text stop |
|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
:.Replace text cats^ |
]])
end)
@@ -425,13 +401,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the cats stop |
|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
:C^ |
]])
assert_alive()
@@ -481,13 +451,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the text stop |
a.a.a.a. |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
:Test a.a.a.a.^ |
]])
feed('<C-V><Esc>u')
@@ -501,13 +465,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the text stop |
a.a.a. |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
:Test a.a.a.a.{5:^[}u^ |
]])
feed('<Esc>')
@@ -521,13 +479,7 @@ describe("'inccommand' for user commands", function()
why won't it stop |
make the text stop |
^ |
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*7
|
]])
end
@@ -581,17 +533,7 @@ describe("'inccommand' with multiple buffers", function()
baz {1:bar} bar │ bar baz {1:bar} |
{1:bar} bar baz │ baz {1:bar} bar |
│ |
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
+ {2:~ }│{2:~ }|*11
{4:[No Name] [+] }{3:[No Name] [+] }|
:Replace foo bar^ |
]])
@@ -601,17 +543,7 @@ describe("'inccommand' with multiple buffers", function()
baz bar bar │ bar baz bar |
bar bar baz │ baz bar bar |
^ │ |
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
+ {2:~ }│{2:~ }|*11
{4:[No Name] [+] }{3:[No Name] [+] }|
:Replace foo bar |
]])
@@ -645,17 +577,7 @@ describe("'inccommand' with multiple buffers", function()
baz bar bar │ bar baz bar |
bar bar baz │ baz bar bar |
^ │ |
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
- {2:~ }│{2:~ }|
+ {2:~ }│{2:~ }|*11
{4:[No Name] [+] }{3:[No Name] [+] }|
:Replace foo bar |
]])
diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua
index 05d55b94fb..a3ab1a4ab6 100644
--- a/test/functional/ui/input_spec.lua
+++ b/test/functional/ui/input_spec.lua
@@ -273,9 +273,7 @@ it('typing a simplifiable key at hit-enter prompt triggers mapping vim-patch:8.2
feed_command('ls')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2: }|
:ls |
1 %a "[No Name]" line 1 |
@@ -284,12 +282,7 @@ it('typing a simplifiable key at hit-enter prompt triggers mapping vim-patch:8.2
feed('<C-6>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
hit ctrl-6 |
]])
end)
@@ -333,12 +326,7 @@ describe('input non-printable chars', function()
feed_command("e Xtest-overwrite")
screen:expect([[
^foobar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
"Xtest-overwrite" [noeol] 1L, 6B |
]])
@@ -348,9 +336,7 @@ describe('input non-printable chars', function()
feed_command("w")
screen:expect([[
foobar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4: }|
"Xtest-overwrite" |
{2:WARNING: The file has been changed since reading it!!!} |
@@ -360,8 +346,7 @@ describe('input non-printable chars', function()
feed("u")
screen:expect([[
foobar |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{4: }|
"Xtest-overwrite" |
{2:WARNING: The file has been changed since reading it!!!} |
@@ -396,12 +381,7 @@ describe('input non-printable chars', function()
feed("<cr>")
screen:expect([[
^foobar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end)
@@ -449,11 +429,7 @@ describe('display is updated', function()
screen:expect([[
abc |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
end)
@@ -465,11 +441,7 @@ describe('display is updated', function()
screen:expect([[
abc |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
end)
diff --git a/test/functional/ui/linematch_spec.lua b/test/functional/ui/linematch_spec.lua
index ef47ea7ed0..2dcc8c5858 100644
--- a/test/functional/ui/linematch_spec.lua
+++ b/test/functional/ui/linematch_spec.lua
@@ -107,8 +107,7 @@ describe('Diff mode screen with 3 diffs open', function()
{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:~ }|
- {6:~ }│{6:~ }│{6:~ }|
+ {6:~ }│{6:~ }│{6:~ }|*2
{7:<-functional-diff-screen-1.3 [+] }{3:<est-functional-diff-screen-1.2 Xtest-functional-diff-screen-1 }|
:2,6diffget screen-1.2 |
]])
@@ -127,11 +126,7 @@ describe('Diff mode screen with 3 diffs open', function()
{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:~ }|
- {6:~ }│{6:~ }│{6:~ }|
- {6:~ }│{6:~ }│{6:~ }|
- {6:~ }│{6:~ }│{6:~ }|
- {6:~ }│{6:~ }│{6:~ }|
+ {6:~ }│{6:~ }│{6:~ }|*5
{3:<test-functional-diff-screen-1.3 }{7:<functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:5,7diffget screen-1.3 |
]])
@@ -153,8 +148,7 @@ describe('Diff mode screen with 3 diffs open', function()
{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:~ }|
- {6:~ }│{6:~ }│{6:~ }|
+ {6:~ }│{6:~ }│{6:~ }|*2
{3:<test-functional-diff-screen-1.3 <est-functional-diff-screen-1.2 }{7:<st-functional-diff-screen-1 [+] }|
:5,6diffget screen-1.2 |
]])
@@ -176,8 +170,7 @@ describe('Diff mode screen with 3 diffs open', function()
{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:~ }|
- {6:~ }│{6:~ }│{6:~ }|
+ {6:~ }│{6:~ }│{6:~ }|*2
{3:<test-functional-diff-screen-1.3 }{7:<est-functional-diff-screen-1.2 }{3:<st-functional-diff-screen-1 [+] }|
:6,8diffput screen-1 |
]])
@@ -199,8 +192,7 @@ describe('Diff mode screen with 3 diffs open', function()
{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:~ }|
- {6:~ }│{6:~ }│{6:~ }|
+ {6:~ }│{6:~ }│{6:~ }|*2
{3:<test-functional-diff-screen-1.3 }{7:<est-functional-diff-screen-1.2 }{3:<st-functional-diff-screen-1 [+] }|
:6,11diffput screen-1 |
]])
@@ -310,12 +302,7 @@ something
{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:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:5,9diffget |
]])
@@ -339,9 +326,7 @@ something
{1: }{10: }{2:-------------------------------------------}│{1: }{10: 13 }{4:DEF }|
{1: }{10: 12 }something │{1: }{10: 14 }something |
{1: }{10: 13 } │{1: }{10: 15 } |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*3
{3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
:5,10diffget |
]])
@@ -363,11 +348,7 @@ something
{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:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*5
{3:Xtest-functional-diff-screen-1.2 }{7:Xtest-functional-diff-screen-1 [+] }|
:4,17diffget |
]])
@@ -804,19 +785,7 @@ 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:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*13
{7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
@@ -853,17 +822,7 @@ void testFunction () {
{1: }{10: }{2:-------------------------------------------}│{1: }{10: 5 }{4: } }|
{1: }{10: 4 }} │{1: }{10: 6 }} |
{1: }{10: 5 } │{1: }{10: 7 } |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*11
{7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
@@ -903,15 +862,7 @@ void testFunction () {
{1: }{10: 7 }{4:?B }│{1: }{10: }{2:--------------------------------------------}|
{1: }{10: 8 }{4:?C }│{1: }{10: }{2:--------------------------------------------}|
{1: }{10: 9 } │{1: }{10: 4 } |
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*9
{7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
@@ -951,15 +902,7 @@ void testFunction () {
{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:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*9
{7:Xtest-functional-diff-screen-1.2 }{3:Xtest-functional-diff-screen-1 }|
:e |
]])
@@ -1099,12 +1042,7 @@ something
{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:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
- {6:~ }│{6:~ }|
+ {6:~ }│{6:~ }|*6
{7:Xtest-functional-diff-screen-1.2 [+] }{3:Xtest-functional-diff-screen-1 }|
:1,19diffget |
]])
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 1d11a12af4..85895b2c36 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -50,10 +50,7 @@ describe('ui/ext_messages', function()
feed(':call confirm("test")<cr>')
screen:expect{grid=[[
line ^1 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={ {
content = {{"\ntest\n[O]k: ", 4}},
kind = 'confirm',
@@ -62,10 +59,7 @@ describe('ui/ext_messages', function()
feed('<cr>')
screen:expect{grid=[[
line ^1 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -77,9 +71,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
line 1 |
line ^2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], messages={ {
content = {{"\ntest\n[O]k: ", 4}},
kind = 'confirm',
@@ -88,9 +80,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
line 1 |
line ^2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], messages={ {
content = { { "\ntest\n[O]k: ", 4 } },
kind = "confirm"
@@ -108,9 +98,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
l{7:i}ne 1 |
l{8:i}ne ^2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], attr_ids={
[1] = {bold = true, foreground = Screen.colors.Blue1},
[2] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red},
@@ -133,9 +121,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
line 1 |
{MATCH:.*}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], attr_ids={
[1] = {bold = true, foreground = Screen.colors.Blue1},
[7] = {foreground = Screen.colors.Red},
@@ -150,9 +136,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
l^ine 1 |
line 2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], attr_ids={
[1] = {bold = true, foreground = Screen.colors.Blue1},
[2] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red},
@@ -171,9 +155,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
l^ine 1 |
line 2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], messages={ {
content = { { "Error detected while processing :", 2 } },
kind = "emsg"
@@ -193,9 +175,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
line 1 |
^line 2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], messages={ {
content = { { "(2 of 2): line2" } },
kind = "quickfix"
@@ -206,10 +186,7 @@ describe('ui/ext_messages', function()
feed(':echoerr "raa"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{"raa", 2}},
kind = "echoerr",
@@ -219,10 +196,7 @@ describe('ui/ext_messages', function()
feed(':')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], cmdline={{
firstc = ":",
content = {{ "" }},
@@ -233,10 +207,7 @@ describe('ui/ext_messages', function()
feed('echoerr "bork" | echoerr "fail"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "bork", 2 }},
kind = "echoerr"
@@ -251,10 +222,7 @@ describe('ui/ext_messages', function()
feed(':echoerr "extrafail"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = { { "bork", 2 } },
kind = "echoerr"
@@ -272,20 +240,14 @@ describe('ui/ext_messages', function()
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
-- cmdline without interleaving wait/display keeps the error message
feed(':echoerr "problem" | let x = input("foo> ")<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "problem", 2 }},
kind = "echoerr"
@@ -298,20 +260,14 @@ describe('ui/ext_messages', function()
feed('solution<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
eq('solution', eval('x'))
feed(":messages<cr>")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], msg_history={
{kind="echoerr", content={{"raa", 2}}},
{kind="echoerr", content={{"bork", 2}}},
@@ -326,10 +282,7 @@ describe('ui/ext_messages', function()
feed '<cr>'
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -338,10 +291,7 @@ describe('ui/ext_messages', function()
feed(':echoerr g:multi<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "bork\nfail", 2 }},
kind = "echoerr"
@@ -350,10 +300,7 @@ describe('ui/ext_messages', function()
feed(':messages<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "Press ENTER or type command to continue", 4 }},
kind = "return_prompt"
@@ -371,9 +318,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
{7:^line} 1 |
{7:line} 2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], messages={
{content = {{"/line W [1/2]"}}, kind = "search_count"}
}}
@@ -382,9 +327,7 @@ describe('ui/ext_messages', function()
screen:expect{grid=[[
{7:line} 1 |
{7:^line} 2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], messages={
{content = {{"/line [2/2]"}}, kind = "search_count"}
}}
@@ -394,10 +337,7 @@ describe('ui/ext_messages', function()
feed(':hi ErrorMsg<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={
{content = {{"\nErrorMsg " }, {"xxx", 2}, {" "},
{"ctermfg=", 5 }, { "15 " }, { "ctermbg=", 5 }, { "1 " },
@@ -411,10 +351,7 @@ describe('ui/ext_messages', function()
feed(':let x y<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={
{content = {{ "x #1" }}, kind = ""},
{content = {{ "y #2" }}, kind = ""},
@@ -427,10 +364,7 @@ describe('ui/ext_messages', function()
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={{"-- INSERT --", 3}}}
feed('alphpabet<cr>alphanum<cr>')
@@ -438,8 +372,7 @@ describe('ui/ext_messages', function()
alphpabet |
alphanum |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]], showmode={ { "-- INSERT --", 3 } }}
feed('<c-x>')
@@ -447,8 +380,7 @@ describe('ui/ext_messages', function()
alphpabet |
alphanum |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]], showmode={ { "-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)", 3 } }}
feed('<c-p>')
@@ -456,8 +388,7 @@ describe('ui/ext_messages', function()
alphpabet |
alphanum |
alphanum^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]], popupmenu={
anchor = { 1, 2, 0 },
items = { { "alphpabet", "", "", "" }, { "alphanum", "", "", "" } },
@@ -471,8 +402,7 @@ describe('ui/ext_messages', function()
alphpabet |
alphanum |
alphanum^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]], popupmenu={
anchor = { 1, 2, 0 },
items = { { "alphpabet", "", "", "" }, { "alphanum", "", "", "" } },
@@ -487,8 +417,7 @@ describe('ui/ext_messages', function()
alphpabet |
alphanum |
alphpabet^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]], popupmenu={
anchor = { 1, 2, 0 },
items = { { "alphpabet", "", "", "" }, { "alphanum", "", "", "" } },
@@ -503,8 +432,7 @@ describe('ui/ext_messages', function()
alphpabet |
alphanum |
alphpabe^t |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]], msg_history={{
content = {{ "stuff" }},
kind = "echomsg",
@@ -518,37 +446,25 @@ describe('ui/ext_messages', function()
feed('qq')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "recording @q", 3 } }}
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "-- INSERT --recording @q", 3 } }}
feed('<esc>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "recording @q", 3 } }}
feed('q')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]])
end)
@@ -558,37 +474,25 @@ describe('ui/ext_messages', function()
-- also check mode to avoid immediate success
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "recording @q", 3 } }, mode="normal"}
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "recording @q", 3 } }, mode="insert"}
feed('<esc>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "recording @q", 3 } }, mode="normal"}
feed('q')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], mode="normal"}
end)
@@ -596,66 +500,48 @@ describe('ui/ext_messages', function()
command('set showcmd ruler')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], ruler={ { "0,0-1 All" } }}
feed('i')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], showmode={ { "-- INSERT --", 3 } }, ruler={ { "0,1 All" } }}
feed('abcde<cr>12345<esc>')
screen:expect{grid=[[
abcde |
1234^5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], ruler={ { "2,5 All" } }}
feed('d')
screen:expect{grid=[[
abcde |
1234^5 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], showcmd={ { "d" } }, ruler={ { "2,5 All" } }}
feed('<esc>^')
screen:expect{grid=[[
abcde |
^12345 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], ruler={ { "2,1 All" } }}
feed('d')
screen:expect{grid=[[
abcde |
^12345 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], showcmd={ { "d" } }, ruler={ { "2,1 All" } }}
feed('i')
screen:expect{grid=[[
abcde |
^12345 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], showcmd={ { "di" } }, ruler={ { "2,1 All" } }}
feed('w')
screen:expect{grid=[[
abcde |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]], ruler={ { "2,0-1 All" } }}
-- when ruler is part of statusline it is not externalized.
@@ -664,8 +550,7 @@ describe('ui/ext_messages', function()
screen:expect([[
abcde |
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{6:<o Name] [+] 2,0-1 All}|
]])
end)
@@ -674,10 +559,7 @@ describe('ui/ext_messages', function()
feed(':echomsg "howdy"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "howdy" }}, kind = "echomsg"}
}}
@@ -687,10 +569,7 @@ describe('ui/ext_messages', function()
feed('<c-c>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "Type :qa and press <Enter> to exit Nvim" }},
kind = ""}
@@ -699,10 +578,7 @@ describe('ui/ext_messages', function()
feed(':echoerr "bork"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "bork", 2 }}, kind = "echoerr"}
}}
@@ -710,10 +586,7 @@ describe('ui/ext_messages', function()
feed(':echo "xyz"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "xyz" }}, kind = "echo"}
}}
@@ -721,10 +594,7 @@ describe('ui/ext_messages', function()
feed(':call nosuchfunction()<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{ "E117: Unknown function: nosuchfunction", 2 }},
kind = "emsg"}
@@ -733,10 +603,7 @@ describe('ui/ext_messages', function()
feed(':messages<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], msg_history={
{kind="echomsg", content={{"howdy"}}},
{kind="", content={{"Type :qa and press <Enter> to exit Nvim"}}},
@@ -753,10 +620,7 @@ describe('ui/ext_messages', function()
feed(':set cmdheight=1')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], cmdline={{
content = { { "set cmdheight=1" } },
firstc = ":",
@@ -766,20 +630,14 @@ describe('ui/ext_messages', function()
feed('<cr>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]])
eq(0, eval('&cmdheight'))
feed(':set cmdheight=0')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], cmdline={{
content = { { "set cmdheight=0" } },
firstc = ":",
@@ -788,10 +646,7 @@ describe('ui/ext_messages', function()
feed('<cr>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]])
eq(0, eval('&cmdheight'))
end)
@@ -800,10 +655,7 @@ describe('ui/ext_messages', function()
feed(':lua error("such\\nmultiline\\nerror")<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{[[E5108: Error executing lua [string ":lua"]:1: such
multiline
@@ -820,10 +672,7 @@ stack traceback:
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={{
content = {{"Error invoking 'test_method' on channel 1:\ncomplete\nerror\n\nmessage", 2}},
kind = "rpc_error"
@@ -855,12 +704,7 @@ stack traceback:
feed(':set wildm<tab>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
]], messages={{
content = {{'wildmenu wildmode'}},
kind = '',
@@ -879,9 +723,7 @@ stack traceback:
feed('z=')
screen:expect{grid=[[
{9:helllo} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{1:^~ }|
]], messages={
{content = { { 'Change "helllo" to:\n 1 "Hello"\n 2 "Hallo"\n 3 "Hullo"\nType number and <Enter> or click with the mouse (q or empty cancels): ' } }, kind = ""}
@@ -890,9 +732,7 @@ stack traceback:
feed('1')
screen:expect{grid=[[
{9:helllo} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{1:^~ }|
]], messages={
{content = { { 'Change "helllo" to:\n 1 "Hello"\n 2 "Hallo"\n 3 "Hullo"\nType number and <Enter> or click with the mouse (q or empty cancels): ' } }, kind = ""},
@@ -902,10 +742,7 @@ stack traceback:
feed('<cr>')
screen:expect{grid=[[
^Hello |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -913,10 +750,7 @@ stack traceback:
async_meths.echo({{'wow, ',"Search"}, {"such\n\nvery ", "ErrorMsg"}, {"color", "LineNr"}}, true, {})
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={
{ content = { { "wow, ", 7 }, { "such\n\nvery ", 2 }, { "color", 10 } }, kind = "echomsg" }
}}
@@ -924,10 +758,7 @@ stack traceback:
feed ':ls<cr>'
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={
{ content = { { '\n 1 %a "[No Name]" line 1' } }, kind = "" }
}}
@@ -935,10 +766,7 @@ stack traceback:
feed ':messages<cr>'
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], messages={
{ content = { { "Press ENTER or type command to continue", 4 } }, kind = "return_prompt" }
}, msg_history={
@@ -948,10 +776,7 @@ stack traceback:
feed '<cr>'
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -1007,8 +832,7 @@ describe('ui/builtin messages', function()
feed(':hi ErrorMsg<cr>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3: }|
:hi ErrorMsg |
ErrorMsg {2:xxx} {5:ctermfg=}15 {5:ctermbg=}1 {5:guifg=}White {5:guibg=}Red |
@@ -1092,31 +916,19 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed(':call T1()<CR>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
message T1 |
]]}
feed(':call T2()<CR>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
message T2 |
]]}
feed(':call T3()<CR>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
message T3 |
]]}
end)
@@ -1125,33 +937,21 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
command("set ruler laststatus=0")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
0,0-1 All |
]]}
command("hi MsgArea guibg=#333333")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{7: 0,0-1 All }|
]]}
command("set rulerformat=%15(%c%V\\ %p%%%)")
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{7: 0,0-1 100% }|
]]}
end)
@@ -1160,8 +960,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed(':echo "line 1\\r\\nline 2"<cr>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3: }|
line 1 |
line 2 |
@@ -1171,11 +970,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed('<cr>:echo "abc\\rz"<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
zbc |
]]}
end)
@@ -1245,8 +1040,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed(':set colorcolumn=5 | lua error("x\\n\\n\\nx")<cr>')
screen:expect{grid=[[
{2:E5108: Error executing lua [string ":lua"]:1: x} |
- |
- |
+ |*2
{2:x} |
{2:stack traceback:} |
{2: [C]: in function 'error'} |
@@ -1255,8 +1049,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed('<cr>')
screen:expect{grid=[[
- |
- |
+ |*2
{2:x} |
{2:stack traceback:} |
{2: [C]: in function 'error'} |
@@ -1280,11 +1073,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed '<cr>'
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]]}
@@ -1319,8 +1108,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
{11: 2 }^bbb |
{11: 3 }ccc |
{11: 4 } |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
end)
@@ -1341,9 +1129,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed(':call PrintAndWait()<CR>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3: }|
aaa |
bbb^ |
@@ -1383,9 +1169,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
]], false)
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{3: }|
|
{4:Press ENTER or type command to continue}^ |
@@ -1393,11 +1177,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
feed('<CR>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
eq(1, meths.get_option_value('cmdheight', {}))
@@ -1408,9 +1188,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
screen:try_resize(60, 5)
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
eq({ mode = 'n', blocking = false }, meths.get_mode())
@@ -1451,10 +1229,7 @@ describe('ui/ext_messages', function()
-- Note parts of it depends on version or is indeterministic. We ignore those parts.
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{MATCH:.*}|
{1:~ }|
{1:~ }Nvim is open source and freely distributable{1: }|
@@ -1467,50 +1242,20 @@ describe('ui/ext_messages', function()
{1:~ }|
{1:~{MATCH: +}}type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+}{1:{MATCH: +}}|
{1:~ }|
- {MATCH:.*}|
- {MATCH:.*}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {MATCH:.*}|*2
+ {1:~ }|*5
]])
feed("<c-l>")
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*23
]])
feed(":intro<cr>")
screen:expect{grid=[[
^ |
- |
- |
- |
- |
+ |*4
{MATCH:.*}|
|
Nvim is open source and freely distributable |
@@ -1523,13 +1268,8 @@ describe('ui/ext_messages', function()
|
{MATCH: +}type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+ +}|
|
- {MATCH:.*}|
- {MATCH:.*}|
- |
- |
- |
- |
- |
+ {MATCH:.*}|*2
+ |*5
]], messages={
{content = { { "Press ENTER or type command to continue", 4 } }, kind = "return_prompt" }
}}
@@ -1541,28 +1281,10 @@ describe('ui/ext_messages', function()
feed(":set cmdheight<cr>")
screen:expect({grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
────────────────────────────────────────────────────────────────────────────────|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
{7:[No Name] }|
]], messages={
{content = { { " cmdheight=0" } }, kind = "" }
@@ -1572,28 +1294,10 @@ describe('ui/ext_messages', function()
feed(":set laststatus<cr>")
screen:expect({grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
────────────────────────────────────────────────────────────────────────────────|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*9
{7:[No Name] }|
]], messages={
{content = { { " laststatus=3" } }, kind = "" }
@@ -1607,28 +1311,10 @@ describe('ui/ext_messages', function()
feed(":set cmdheight<cr>")
screen:expect({grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
────────────────────────────────────────────────────────────────────────────────|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
{7:[No Name] }|
]], messages={
{content = { { " cmdheight=0" } }, kind = "" }
@@ -1726,9 +1412,7 @@ aliquip ex ea commodo consequat.]])
feed('q')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end)
@@ -1748,9 +1432,7 @@ aliquip ex ea commodo consequat.]])
feed('q')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
feed(':mess<cr>')
@@ -2064,10 +1746,7 @@ aliquip ex ea commodo consequat.]])
feed(':!sleep 1<cr>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{12: }|
:!sleep 1 |
|
@@ -2080,8 +1759,7 @@ aliquip ex ea commodo consequat.]])
-- before the "press ENTER" prompt though
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{12: }|
:!sleep 1 |
|
@@ -2092,9 +1770,7 @@ aliquip ex ea commodo consequat.]])
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]]}
end)
@@ -2134,9 +1810,7 @@ aliquip ex ea commodo consequat.]])
{2:mpore} |
{2:incididunt ut labore et dolore}|
{2:a aliqua.} |
- |
- |
- |
+ |*3
{4:-- More --}^ |
]]}
@@ -2177,16 +1851,7 @@ aliquip ex ea commodo consequat.]])
feed('q')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
|
]]}
end)
@@ -2208,13 +1873,7 @@ aliquip ex ea commodo consequat.]])
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
]]}
feed('g<lt>')
@@ -2232,13 +1891,7 @@ aliquip ex ea commodo consequat.]])
feed('<cr>')
screen:expect{grid=[[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
]]}
end)
end)
diff --git a/test/functional/ui/mode_spec.lua b/test/functional/ui/mode_spec.lua
index e870d6f25f..3d5f94cdce 100644
--- a/test/functional/ui/mode_spec.lua
+++ b/test/functional/ui/mode_spec.lua
@@ -24,24 +24,21 @@ describe('ui mode_change event', function()
it('works in normal mode', function()
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
feed('d')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="operator"}
feed('<esc>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
end)
@@ -54,16 +51,14 @@ describe('ui mode_change event', function()
feed('c')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="operator"}
feed('c')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{4:E21: Cannot make changes, 'modifiable' is off} |
]], mode="normal"}
end)
@@ -73,16 +68,14 @@ describe('ui mode_change event', function()
feed('gr')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="replace"}
feed('<Esc>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
end)
@@ -91,16 +84,14 @@ describe('ui mode_change event', function()
feed('i')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- INSERT --} |
]], mode="insert"}
feed('word<esc>')
screen:expect{grid=[[
wor^d |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
@@ -114,23 +105,20 @@ describe('ui mode_change event', function()
feed('a(stuff')
screen:expect{grid=[[
word(stuff^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- INSERT --} |
]], mode="insert", timeout=screen_timeout}
feed(')')
screen:expect{grid=[[
word^(stuff) |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- INSERT --} |
]], mode="showmatch", timeout=screen_timeout}
screen:expect{grid=[[
word(stuff)^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- INSERT --} |
]], mode="insert", timeout=screen_timeout}
end)
@@ -140,16 +128,14 @@ describe('ui mode_change event', function()
feed('R')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- REPLACE --} |
]], mode="replace"}
feed('word<esc>')
screen:expect{grid=[[
wor^d |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
end)
@@ -158,24 +144,21 @@ describe('ui mode_change event', function()
feed(':')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:^ |
]], mode="cmdline_normal"}
feed('x<left>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:^x |
]], mode="cmdline_insert"}
feed('<insert>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:^x |
]], mode="cmdline_replace"}
@@ -183,16 +166,14 @@ describe('ui mode_change event', function()
feed('<right>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:x^ |
]], mode="cmdline_normal"}
feed('<esc>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
end)
@@ -202,16 +183,14 @@ describe('ui mode_change event', function()
feed('v')
screen:expect{grid=[[
tex^t |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- VISUAL --} |
]], mode="visual"}
feed('<esc>')
screen:expect{grid=[[
tex^t |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
@@ -219,16 +198,14 @@ describe('ui mode_change event', function()
feed('v')
screen:expect{grid=[[
tex^t |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:-- VISUAL --} |
]], mode="visual_select"}
feed('<esc>')
screen:expect{grid=[[
tex^t |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], mode="normal"}
end)
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua
index 1356ba3db8..e408df7096 100644
--- a/test/functional/ui/mouse_spec.lua
+++ b/test/functional/ui/mouse_spec.lua
@@ -151,24 +151,21 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><4,0>')
screen:expect([[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftDrag><14,0>')
screen:expect([[
{tab: + bar }{sel: + foo }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -181,24 +178,21 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><11,0>')
screen:expect{grid=[[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], unchanged=true}
feed('<LeftDrag><6,0>')
screen:expect([[
{sel: + bar }{tab: + foo }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -211,24 +205,21 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><4,0>')
screen:expect([[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftDrag><7,0>')
screen:expect([[
{tab: + bar }{sel: + foo }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -241,32 +232,28 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><4,0>')
screen:expect([[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftDrag><4,1>')
screen:expect{grid=[[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], unchanged=true}
feed('<LeftDrag><14,1>')
screen:expect([[
{tab: + bar }{sel: + foo }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -279,32 +266,28 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><11,0>')
screen:expect{grid=[[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], unchanged=true}
feed('<LeftDrag><11,1>')
screen:expect{grid=[[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], unchanged=true}
feed('<LeftDrag><6,1>')
screen:expect([[
{sel: + bar }{tab: + foo }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -317,32 +300,28 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><4,0>')
screen:expect([[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftDrag><4,1>')
screen:expect{grid=[[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]], unchanged=true}
feed('<LeftDrag><7,1>')
screen:expect([[
{tab: + bar }{sel: + foo }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -366,16 +345,14 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><4,0>')
screen:expect([[
{sel: + foo }{tab: + bar }{fill: }{tab:X}|
this is fo^o |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -389,16 +366,13 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<LeftMouse><24,0>')
screen:expect([[
this is fo^o |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -412,16 +386,14 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
this is ba^r{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
feed('<2-LeftMouse><4,0>')
screen:expect([[
{sel: Name] }{tab: + foo + bar }{fill: }{tab:X}|
{0:^$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -574,16 +546,14 @@ describe('ui/mouse/input', function()
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
^this is bar{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
:tabprevious |
]])
feed('<LeftDrag><4,1>')
screen:expect([[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
{vis:this}^ is bar{0:$} |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sel:-- VISUAL --} |
]])
end)
@@ -601,15 +571,11 @@ describe('ui/mouse/input', function()
testing │testing |
mouse │mouse |
support and selection │support and selection |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*2
{0:~ }│{4:[No Name] [+] }|
{0:~ }│foo{0:$} |
{0:~ }│ba^r{0:$} |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*4
{4:[No Name] [+] }{5:[No Name] [+] }|
|
]]}
@@ -619,15 +585,11 @@ describe('ui/mouse/input', function()
testing │testing |
mouse │mouse |
support and selection │support and selection |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*2
{0:~ }│{4:[No Name] [+] }|
{0:~ }│^foo{0:$} |
{0:~ }│bar{0:$} |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*4
{4:[No Name] [+] }{5:[No Name] [+] }|
|
]]}
@@ -637,15 +599,11 @@ describe('ui/mouse/input', function()
testing │testing |
mouse │mouse |
support and selection │support and selection |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*2
{0:~ }│{4:[No Name] [+] }|
{0:~ }│{1:foo}{3:$} |
{0:~ }│{1:bar}{0:^$} |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*4
{4:[No Name] [+] }{5:[No Name] [+] }|
{2:-- VISUAL --} |
]]}
@@ -834,8 +792,7 @@ describe('ui/mouse/input', function()
meths.set_option_value('statuscolumn', 'foobar', { win = oldwin })
screen:expect([[
{8:fo}│{0:^$} |
- {8:fo}│{0:~ }|
- {8:fo}│{0:~ }|
+ {8:fo}│{0:~ }|*2
{4:< }{5:[No Name] }|
|
]])
@@ -971,8 +928,7 @@ describe('ui/mouse/input', function()
feed("a <esc>20Ab<esc>")
screen:expect([[
- |
- |
+ |*2
bbbbbbbbbbbbbbb^b |
{0:~ }|
|
@@ -980,8 +936,7 @@ describe('ui/mouse/input', function()
feed("<ScrollWheelLeft><0,0>")
screen:expect([[
- |
- |
+ |*2
n bbbbbbbbbbbbbbbbbbb^b |
{0:~ }|
|
@@ -1003,8 +958,7 @@ describe('ui/mouse/input', function()
feed("a <esc>20Ab<esc>")
screen:expect([[
- |
- |
+ |*2
bbbbbbbbbbbbbbb^b |
{0:~ }|
|
@@ -1012,8 +966,7 @@ describe('ui/mouse/input', function()
meths.input_mouse('wheel', 'left', '', 0, 0, 27)
screen:expect([[
- |
- |
+ |*2
n bbbbbbbbbbbbbbbbbbb^b |
{0:~ }|
|
@@ -1083,8 +1036,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t3{c: } {c: }|
{c:>} 私は猫が大好き{0:>---}{c: X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1094,8 +1046,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t3{c: } {c: }|
{c:>} 私は猫が大好き{0:>---}{c: X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1105,8 +1056,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t3{c: } {c: }|
{c:>} 私は猫が大好き{0:>---}{c: X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1116,8 +1066,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t^3{c: } {c: }|
{c:>} 私は猫が大好き{0:>---}{c: X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1127,8 +1076,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t3{c: } {c: }|
{c:^>} 私は猫が大好き{0:>---}{c: X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1138,8 +1086,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t3{c: } {c: }|
{c:>} 私は^猫が大好き{0:>---}{c: X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1149,8 +1096,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} {c: }t2{c: } {c: }t3{c: } {c: }|
{c:>} 私は猫が大好き{0:>---}{c: ^X } {0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1166,8 +1112,7 @@ describe('ui/mouse/input', function()
t4{c: } |
{c:>} 私は猫が大好き{0:>---}{c: X} |
{c: } ✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><0,2>')
@@ -1177,8 +1122,7 @@ describe('ui/mouse/input', function()
^t4{c: } |
{c:>} 私は猫が大好き{0:>---}{c: X} |
{c: } ✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><8,3>')
@@ -1188,8 +1132,7 @@ describe('ui/mouse/input', function()
t4{c: } |
{c:>} 私は猫^が大好き{0:>---}{c: X} |
{c: } ✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><21,3>')
@@ -1199,8 +1142,7 @@ describe('ui/mouse/input', function()
t4{c: } |
{c:>} 私は猫が大好き{0:>---}{c: ^X} |
{c: } ✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><4,4>')
@@ -1210,8 +1152,7 @@ describe('ui/mouse/input', function()
t4{c: } |
{c:>} 私は猫が大好き{0:>---}{c: X} |
{c: } ✨^🐈✨ |
- |
- |
+ |*2
]])
end) -- level 1 - wrapped
@@ -1225,8 +1166,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1236,8 +1176,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} ^t2 t3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1247,8 +1186,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t^3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1258,8 +1196,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:^>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1269,8 +1206,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:>} 私は猫^が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1280,8 +1216,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:^X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end) -- level 2 - non wrapped
@@ -1295,8 +1230,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sm:-- INSERT --} |
]])
@@ -1306,8 +1240,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} ^t2 t3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sm:-- INSERT --} |
]])
@@ -1317,8 +1250,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t^3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sm:-- INSERT --} |
]])
@@ -1328,8 +1260,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:^>} 私は猫が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sm:-- INSERT --} |
]])
@@ -1339,8 +1270,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:>} 私は猫^が大好き{0:>---}{c:X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sm:-- INSERT --} |
]])
@@ -1350,8 +1280,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
{c:>} 私は猫が大好き{0:>---}{c:^X} ✨{0:>}|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{sm:-- INSERT --} |
]])
end) -- level 2 - non wrapped (insert mode)
@@ -1366,8 +1295,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><14,1>')
@@ -1377,8 +1305,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><18,1>')
@@ -1388,8 +1315,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
✨🐈✨ |
- |
- |
+ |*2
]])
-- NOTE: The click would ideally be on the 't' in 't4', but wrapping
@@ -1405,8 +1331,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><1,2>')
@@ -1416,8 +1341,7 @@ describe('ui/mouse/input', function()
t^4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><0,3>')
@@ -1427,8 +1351,7 @@ describe('ui/mouse/input', function()
t4 |
{c:^>} 私は猫が大好き{0:>---}{c:X} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><20,3>')
@@ -1438,8 +1361,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:^X} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><1,4>')
@@ -1449,8 +1371,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
^✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><5,4>')
@@ -1460,8 +1381,7 @@ describe('ui/mouse/input', function()
t4 |
{c:>} 私は猫が大好き{0:>---}{c:X} |
✨🐈^✨ |
- |
- |
+ |*2
]])
end) -- level 2 - wrapped
@@ -1474,8 +1394,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
^ 私は猫が大好き{0:>----} ✨🐈|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1485,8 +1404,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
^私は猫が大好き{0:>----} ✨🐈|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1496,8 +1414,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
私は猫が大好^き{0:>----} ✨🐈|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
@@ -1508,8 +1425,7 @@ describe('ui/mouse/input', function()
{0:>--->--->---} t2 t3 t4 |
私は猫が大好き{0:>----}^ ✨🐈|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end) -- level 3 - non wrapped
@@ -1524,8 +1440,7 @@ describe('ui/mouse/input', function()
t4 |
私は猫が大好き{0:>----} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><18,1>')
@@ -1535,8 +1450,7 @@ describe('ui/mouse/input', function()
t4 |
私は猫が大好き{0:>----} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><1,2>')
@@ -1546,8 +1460,7 @@ describe('ui/mouse/input', function()
t^4 |
私は猫が大好き{0:>----} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><0,3>')
@@ -1557,8 +1470,7 @@ describe('ui/mouse/input', function()
t4 |
^ 私は猫が大好き{0:>----} |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><20,3>')
@@ -1568,8 +1480,7 @@ describe('ui/mouse/input', function()
t4 |
私は猫が大好き{0:>----}^ |
✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><1,4>')
@@ -1579,8 +1490,7 @@ describe('ui/mouse/input', function()
t4 |
私は猫が大好き{0:>----} |
^✨🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><3,4>')
@@ -1590,8 +1500,7 @@ describe('ui/mouse/input', function()
t4 |
私は猫が大好き{0:>----} |
✨^🐈✨ |
- |
- |
+ |*2
]])
feed('<esc><LeftMouse><5,4>')
@@ -1601,8 +1510,7 @@ describe('ui/mouse/input', function()
t4 |
私は猫が大好き{0:>----} |
✨🐈^✨ |
- |
- |
+ |*2
]])
end) -- level 3 - wrapped
diff --git a/test/functional/ui/multibyte_spec.lua b/test/functional/ui/multibyte_spec.lua
index d72bf27d6b..e66e6b2063 100644
--- a/test/functional/ui/multibyte_spec.lua
+++ b/test/functional/ui/multibyte_spec.lua
@@ -35,9 +35,7 @@ describe("multibyte rendering", function()
screen:expect([[
^ ̊ |
x |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
< ̊> 778, Hex 030a, Octal 1412 |
]])
@@ -47,9 +45,7 @@ describe("multibyte rendering", function()
screen:expect([[
^å |
x |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
<a> 97, Hex 61, Octal 141 < ̊> 778, Hex 030a, Octal 1412 |
]])
end)
@@ -58,10 +54,7 @@ describe("multibyte rendering", function()
feed('58a <esc>a馬<esc>')
screen:expect([[
^馬|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
@@ -69,9 +62,7 @@ describe("multibyte rendering", function()
screen:expect([[
^ {1:>}|
馬 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
@@ -79,9 +70,7 @@ describe("multibyte rendering", function()
screen:expect([[
{1:>}|
^馬 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
@@ -91,9 +80,7 @@ describe("multibyte rendering", function()
screen:expect([[
ab ^ |
-馬 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:-- INSERT --} |
]])
@@ -103,8 +90,7 @@ describe("multibyte rendering", function()
ab xx^ |
- {2: xx } |
{1:~ }{3: yy }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{4:-- INSERT --} |
]])
@@ -113,9 +99,7 @@ describe("multibyte rendering", function()
screen:expect([[
ab xxz^ |
-馬 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:-- INSERT --} |
]])
end)
@@ -125,10 +109,7 @@ describe("multibyte rendering", function()
feed('$')
screen:expect{grid=[[
{5:<ffff>}!!^! |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
end)
@@ -185,20 +166,14 @@ describe("multibyte rendering", function()
feed('isghl!<esc>')
screen:expect{grid=[[
^!مالس|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*4
|
]]}
command('set arabicshape')
screen:expect{grid=[[
^!ﻡﻼﺳ|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*4
|
]]}
end)
@@ -210,20 +185,14 @@ describe("multibyte rendering", function()
feed('isghl!<esc>')
screen:expect{grid=[[
سلام^! |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
command('set arabicshape')
screen:expect{grid=[[
ﺱﻼﻣ^! |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
@@ -241,20 +210,14 @@ describe("multibyte rendering", function()
screen:expect{grid=[[
^سلام့̀́̂̃̄̅̆̇̈̉̊̋̌ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
command('set arabicshape')
screen:expect{grid=[[
^ﺱﻼﻣ̀́̂̃̄̅̆̇̈̉̊̋̌ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]]}
end)
diff --git a/test/functional/ui/multigrid_spec.lua b/test/functional/ui/multigrid_spec.lua
index 5b982df2b5..098c0f7fef 100644
--- a/test/functional/ui/multigrid_spec.lua
+++ b/test/functional/ui/multigrid_spec.lua
@@ -47,33 +47,12 @@ describe('ext_multigrid', function()
it('default initial screen', function()
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
]]}
@@ -83,48 +62,17 @@ describe('ext_multigrid', function()
command('vsplit')
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*12
{11:[No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
]], condition=function()
eq({
[2] = { win = {id=1000}, startrow = 0, startcol = 27, width = 26, height = 12 },
@@ -135,48 +83,22 @@ describe('ext_multigrid', function()
command('split')
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
+ [4:--------------------------]│[5:--------------------------]|*6
[4:--------------------------]│{11:[No Name] }|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*5
{12:[No Name] [No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]], condition=function()
eq({
[2] = { win = {id=1000}, startrow = 7, startcol = 27, width = 26, height = 5 },
@@ -188,35 +110,19 @@ describe('ext_multigrid', function()
command('q')
screen:expect{grid=[[
## grid 1
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
+ [5:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]], condition=function()
eq({
[2] = { win = {id=1000}, startrow = 7, startcol = 0, width = 53, height = 5 },
@@ -231,35 +137,19 @@ describe('ext_multigrid', function()
command('sp')
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]])
end)
@@ -268,35 +158,19 @@ describe('ext_multigrid', function()
command('resize 8')
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*8
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*3
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
]])
end)
@@ -306,162 +180,77 @@ describe('ext_multigrid', function()
command('vsp')
screen:expect{grid=[[
## grid 1
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
+ [6:--------------------]│[5:----------------]│[4:---------------]|*6
{11:[No Name] }{12:[No Name] [No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 6
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
insert('hello')
screen:expect{grid=[[
## grid 1
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
- [6:--------------------]│[5:----------------]│[4:---------------]|
+ [6:--------------------]│[5:----------------]│[4:---------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] [No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
hello |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
hello |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
hello |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 6
hell^o |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
end)
it('closes splits', function ()
command('sp')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
command('q')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
]]}
@@ -473,48 +262,17 @@ describe('ext_multigrid', function()
command('vsp')
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*12
{11:[No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
]]}
end)
it('resizes grids', function ()
@@ -522,48 +280,17 @@ describe('ext_multigrid', function()
command('vertical resize 10')
screen:expect{grid=[[
## grid 1
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
- [4:----------]│[2:------------------------------------------]|
+ [4:----------]│[2:------------------------------------------]|*12
{11:<No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
]]}
end)
it('splits horizontally', function ()
@@ -571,173 +298,69 @@ describe('ext_multigrid', function()
command('sp')
screen:expect{grid=[[
## grid 1
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
+ [5:--------------------------]│[2:--------------------------]|*6
{11:[No Name] }│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*5
{12:[No Name] [No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
insert('hello')
screen:expect{grid=[[
## grid 1
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
+ [5:--------------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
hello |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
hello |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 5
hell^o |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
end)
it('closes splits', function ()
command('vsp')
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*12
{11:[No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
]]}
command('q')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
]]}
@@ -750,17 +373,12 @@ describe('ext_multigrid', function()
screen:try_resize(25, 6)
screen:expect{grid=[[
## grid 1
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
- [2:-------------------------]|
+ [2:-------------------------]|*4
{11:[No Name] }|
[3:-------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
]]}
@@ -799,26 +417,12 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
]]}
@@ -831,41 +435,12 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*19
## grid 3
|
]]}
@@ -890,41 +465,13 @@ describe('ext_multigrid', function()
insert(('a'):rep(60).."\n")
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*18
## grid 3
|
]]}
@@ -936,82 +483,24 @@ describe('ext_multigrid', function()
feed('0')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa哦|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*19
## grid 3
|
]]}
feed('g$')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^哦|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*19
## grid 3
|
]]}
@@ -1021,41 +510,14 @@ describe('ext_multigrid', function()
insert(('b'):rep(160).."\n")
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|*2
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*16
## grid 3
|
]]}
@@ -1063,18 +525,7 @@ describe('ext_multigrid', function()
command('setlocal cursorline cursorlineopt=screenline')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
@@ -1082,22 +533,7 @@ describe('ext_multigrid', function()
{23:^bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*16
## grid 3
|
]]}
@@ -1108,41 +544,12 @@ describe('ext_multigrid', function()
' long message"')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*19
## grid 3
this is a very very very...ry very very long message |
]]}
@@ -1153,41 +560,13 @@ describe('ext_multigrid', function()
feed('kzfgg')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
{13:^+-- 2 lines: this is a fold································}|
this is outside fold |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*18
## grid 3
|
]]}
@@ -1197,39 +576,11 @@ describe('ext_multigrid', function()
insert(('c'):rep(1111))
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
+ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|*18
cccccccccccccccccccccccccccccc^c |
{1:~ }|
## grid 3
@@ -1246,49 +597,18 @@ describe('ext_multigrid', function()
})
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
- cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|
+ cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc|*18
cccccccccccccccccccccccccccccc^c |
{1:~ }|
## grid 3
|
## grid 4
{21: }|
- {22:~ }|
- {22:~ }|
- {22:~ }|
- {22:~ }|
+ {22:~ }|*4
]], float_pos={
[4] = {{id = 1001}, "SE", 2, 16, 58, true, 50};
}}
@@ -1299,41 +619,13 @@ describe('ext_multigrid', function()
feed('A<C-X><C-N>')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*14
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
{7:-- Keyword Local completion (^N^P) }{15:match 1 of 2} |
## grid 4
@@ -1348,41 +640,14 @@ describe('ext_multigrid', function()
feed('o<C-X><C-N>')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*14
rab oof rab oof rab oof rab oof rab oof rab oof rab oof|
^ oof|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*4
## grid 3
{7:-- Keyword Local completion (^N^P) }{15:match 1 of 2} |
## grid 4
@@ -1397,41 +662,14 @@ describe('ext_multigrid', function()
feed(':sign un<Tab>')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*14
rab oof rab oof rab oof rab oof rab oof rab oof rab oof|
|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*4
## grid 3
:sign undefine^ |
## grid 4
@@ -1448,67 +686,34 @@ describe('ext_multigrid', function()
command('vsp')
screen:expect{grid=[[
## grid 1
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
+ [5:--------------------------]│[4:--------------------------]|*6
{11:[No Name] }{12:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
feed(":echoerr 'very' | echoerr 'much' | echoerr 'fail'<cr>")
screen:expect{grid=[[
## grid 1
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
+ [5:--------------------------]│[4:--------------------------]|*6
{11:[No Name] }{12:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*3
+ [3:-----------------------------------------------------]|*4
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
{14:very} |
{14:much} |
@@ -1516,59 +721,31 @@ describe('ext_multigrid', function()
{15:Press ENTER or type command to continue}^ |
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
feed('<cr>')
screen:expect{grid=[[
## grid 1
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
+ [5:--------------------------]│[4:--------------------------]|*6
{11:[No Name] }{12:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
command([[
@@ -1580,26 +757,10 @@ describe('ext_multigrid', function()
feed(":call ErrMsg()<cr>")
screen:expect{grid=[[
## grid 1
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
+ [3:-----------------------------------------------------]|*14
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
{14:Error detected while processing function ErrMsg:} |
{19:line 2:} |
@@ -1617,59 +778,31 @@ describe('ext_multigrid', function()
{15:Press ENTER or type command to continue}^ |
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
feed("<c-c>")
screen:expect{grid=[[
## grid 1
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
- [5:--------------------------]│[4:--------------------------]|
+ [5:--------------------------]│[4:--------------------------]|*6
{11:[No Name] }{12:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
end)
@@ -1677,48 +810,17 @@ describe('ext_multigrid', function()
command('vsp')
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*12
{11:[No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
]]}
@@ -1727,232 +829,93 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
{16: }{17:2}{16: [No Name] }{7: [No Name] }{12: }{16:X}|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
+ [5:-----------------------------------------------------]|*11
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 5
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
]]}
command('sp')
screen:expect{grid=[[
## grid 1
{16: }{17:2}{16: [No Name] }{7: }{18:2}{7: [No Name] }{12: }{16:X}|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
+ [6:-----------------------------------------------------]|*5
{11:[No Name] }|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
+ [5:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 5
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 6
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
command('tabnext')
screen:expect{grid=[[
## grid 1
{7: }{18:2}{7: [No Name] }{16: }{17:2}{16: [No Name] }{12: }{16:X}|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*11
{11:[No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 5 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 6 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
command('tabnext')
screen:expect{grid=[[
## grid 1
{16: }{17:2}{16: [No Name] }{7: }{18:2}{7: [No Name] }{12: }{16:X}|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
- [6:-----------------------------------------------------]|
+ [6:-----------------------------------------------------]|*5
{11:[No Name] }|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
- [5:-----------------------------------------------------]|
+ [5:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 3
|
## grid 4 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 5
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 6
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
command('tabnext')
@@ -1960,117 +923,43 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
{16: }{17:2}{16: [No Name] }{17:2}{16: [No Name] }{7: [No Name] }{12: }{16:X}|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
- [7:-----------------------------------------------------]|
+ [7:-----------------------------------------------------]|*11
{11:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 3
|
## grid 4 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 5 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 6 (hidden)
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 7
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
]]}
command('tabclose')
command('tabclose')
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*12
{11:[No Name] }{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
]]}
end)
@@ -2078,33 +967,13 @@ describe('ext_multigrid', function()
insert('some text\nto be clicked')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicke^d |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 3
|
]]}
@@ -2112,33 +981,13 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'press', '', 2, 0, 5)
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some ^text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
## grid 3
|
]]}
@@ -2148,128 +997,75 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
Lorem ipsum dolor sit amet, consectetur adipiscing el|
it, sed do eiusm^o |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
meths.input_mouse('left', 'press', '', 2, 1, 6)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{12:[No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be ^clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
Lorem ipsum dolor sit amet, consectetur adipiscing el|
it, sed do eiusmo |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
meths.input_mouse('left', 'press', '', 4, 1, 4)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
Lorem ipsum dolor sit amet, consectetur adipiscing el|
it, ^sed do eiusmo |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
screen:try_resize_grid(4, 80, 2)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
@@ -2280,26 +1076,15 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'press', '', 4, 0, 64)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
@@ -2316,28 +1101,15 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'drag', '', 1, 4, 20)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] [+] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*7
{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -2348,28 +1120,15 @@ describe('ext_multigrid', function()
feed('<c-w><c-w><c-w>v')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{12:[No Name] [+] }|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
- [5:--------------------------]│[2:--------------------------]|
+ [5:--------------------------]│[2:--------------------------]|*7
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -2378,11 +1137,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be ^clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
meths.input_mouse('left', 'press', '', 1, 8, 26)
@@ -2390,28 +1145,15 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'drag', '', 1, 6, 30)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{12:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -2420,11 +1162,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be ^clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
command('aunmenu PopUp | vmenu PopUp.Copy y')
@@ -2433,28 +1171,15 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'press', '2', 2, 1, 6)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{12:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{12:[No Name] [+] }{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be {20:clicke}^d |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2463,38 +1188,21 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be {20:clicked} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
meths.input_mouse('right', 'press', '', 2, 1, 6)
meths.input_mouse('right', 'release', '', 2, 1, 6)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{12:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{12:[No Name] [+] }{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be {20:clicke}^d |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2503,11 +1211,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be {20:clicked} |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 6
{21: Copy }|
]], float_pos={
@@ -2516,28 +1220,15 @@ describe('ext_multigrid', function()
feed('<Down><CR>')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{12:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{12:[No Name] [+] }{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be ^clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -2546,11 +1237,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
eq('clicked', funcs.getreg('"'))
@@ -2558,28 +1245,15 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'press', '2', 4, 0, 64)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{12:[No Name] [+] [No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2588,38 +1262,21 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
meths.input_mouse('right', 'press', '', 4, 0, 64)
meths.input_mouse('right', 'release', '', 4, 0, 64)
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{12:[No Name] [+] [No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2628,11 +1285,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 6
{21: Copy }|
]], float_pos={
@@ -2641,28 +1294,15 @@ describe('ext_multigrid', function()
feed('<Down><CR>')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] [+] }|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*7
{12:[No Name] [+] [No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
@@ -2671,11 +1311,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]]}
eq('eiusmo', funcs.getreg('"'))
@@ -2683,26 +1319,15 @@ describe('ext_multigrid', function()
screen:try_resize_grid(4, 7, 10)
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
@@ -2719,35 +1344,22 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]]}
funcs.setreg('"', '')
meths.input_mouse('left', 'press', '2', 4, 9, 1)
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2764,34 +1376,21 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]]}
meths.input_mouse('right', 'press', '', 4, 9, 1)
meths.input_mouse('right', 'release', '', 4, 9, 1)
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2808,9 +1407,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 6
{21: Copy }|
]], float_pos={
@@ -2819,26 +1416,15 @@ describe('ext_multigrid', function()
feed('<Down><CR>')
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
@@ -2855,35 +1441,22 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]]}
eq('eiusmo', funcs.getreg('"'))
screen:try_resize_grid(4, 7, 11)
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
@@ -2901,35 +1474,22 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]]}
funcs.setreg('"', '')
meths.input_mouse('left', 'press', '2', 4, 9, 1)
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2947,34 +1507,21 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]]}
meths.input_mouse('right', 'press', '', 4, 9, 1)
meths.input_mouse('right', 'release', '', 4, 9, 1)
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{7:-- VISUAL --} |
## grid 4
@@ -2992,9 +1539,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 6
{21: Copy }|
]], float_pos={
@@ -3003,26 +1548,15 @@ describe('ext_multigrid', function()
feed('<Down><CR>')
screen:expect{grid=[[
## grid 1
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
- [5:------------------------------]│[2:----------------------]|
+ [5:------------------------------]│[2:----------------------]|*5
{12:[No Name] [+] [No Name] [+] }|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:-----------------------------------------------------]|
## grid 2
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
@@ -3040,9 +1574,7 @@ describe('ext_multigrid', function()
## grid 5
some text |
to be clicked |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
]]}
eq('eiusmo', funcs.getreg('"'))
end)
@@ -3061,48 +1593,23 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
- [4:--------------------------]│[5:--------------------------]|
+ [4:--------------------------]│[5:--------------------------]|*6
[4:--------------------------]│{11:[No Name] [+] }|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
- [4:--------------------------]│[2:--------------------------]|
+ [4:--------------------------]│[2:--------------------------]|*5
{12:[No Name] [No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
{7:-- VISUAL --} |
## grid 4
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
## grid 5
{20:foo} |
{20:ba}^r |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
end)
@@ -3110,21 +1617,12 @@ describe('ext_multigrid', function()
screen:try_resize(48, 8)
screen:expect{grid=[[
## grid 1
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*6
{11:[No Name] }|
[3:------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
]], win_viewport={
@@ -3145,12 +1643,7 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3170,12 +1663,7 @@ describe('ext_multigrid', function()
feed('<c-u>')
screen:expect{grid=[[
## grid 1
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3194,12 +1682,9 @@ describe('ext_multigrid', function()
command("split")
screen:expect{grid=[[
## grid 1
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
+ [4:------------------------------------------------]|*3
{11:[No Name] [+] }|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*2
{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3219,12 +1704,9 @@ describe('ext_multigrid', function()
feed("b")
screen:expect{grid=[[
## grid 1
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
+ [4:------------------------------------------------]|*3
{11:[No Name] [+] }|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*2
{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3244,12 +1726,9 @@ describe('ext_multigrid', function()
feed("2k")
screen:expect{grid=[[
## grid 1
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
+ [4:------------------------------------------------]|*3
{11:[No Name] [+] }|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*2
{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3270,12 +1749,9 @@ describe('ext_multigrid', function()
meths.win_set_cursor(1000, {1, 10})
screen:expect{grid=[[
## grid 1
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
+ [4:------------------------------------------------]|*3
{11:[No Name] [+] }|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*2
{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3296,12 +1772,9 @@ describe('ext_multigrid', function()
feed('zfj')
screen:expect{grid=[[
## grid 1
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
+ [4:------------------------------------------------]|*3
{11:[No Name] [+] }|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*2
{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3321,12 +1794,9 @@ describe('ext_multigrid', function()
feed('<c-e>')
screen:expect{grid=[[
## grid 1
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
- [4:------------------------------------------------]|
+ [4:------------------------------------------------]|*3
{11:[No Name] [+] }|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*2
{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3346,12 +1816,7 @@ describe('ext_multigrid', function()
command('close | 21vsplit | setlocal number smoothscroll')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3378,12 +1843,7 @@ describe('ext_multigrid', function()
feed('5<C-E>')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3410,12 +1870,7 @@ describe('ext_multigrid', function()
feed('<C-Y>')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3442,12 +1897,7 @@ describe('ext_multigrid', function()
command('set cpoptions+=n')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3474,12 +1924,7 @@ describe('ext_multigrid', function()
feed('4<C-E>')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3506,12 +1951,7 @@ describe('ext_multigrid', function()
feed('2<C-Y>')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3538,12 +1978,7 @@ describe('ext_multigrid', function()
command('setlocal numberwidth=12')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3570,12 +2005,7 @@ describe('ext_multigrid', function()
feed('2<C-E>')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3602,12 +2032,7 @@ describe('ext_multigrid', function()
feed('<C-E>')
screen:expect{grid=[[
## grid 1
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
- [5:---------------------]│[2:--------------------------]|
+ [5:---------------------]│[2:--------------------------]|*6
{11:[No Name] [+] }{12:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3637,18 +2062,7 @@ describe('ext_multigrid', function()
command('edit test/functional/fixtures/bigfile.txt')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:test/functional/fixtures/bigfile.txt }|
[3:-----------------------------------------------------]|
## grid 2
@@ -3672,18 +2086,7 @@ describe('ext_multigrid', function()
feed('G')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:test/functional/fixtures/bigfile.txt }|
[3:-----------------------------------------------------]|
## grid 2
@@ -3707,18 +2110,7 @@ describe('ext_multigrid', function()
feed('gg')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:test/functional/fixtures/bigfile.txt }|
[3:-----------------------------------------------------]|
## grid 2
@@ -3742,18 +2134,7 @@ describe('ext_multigrid', function()
command('setlocal wrap')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:test/functional/fixtures/bigfile.txt }|
[3:-----------------------------------------------------]|
## grid 2
@@ -3777,18 +2158,7 @@ describe('ext_multigrid', function()
feed('G')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:test/functional/fixtures/bigfile.txt }|
[3:-----------------------------------------------------]|
## grid 2
@@ -3812,18 +2182,7 @@ describe('ext_multigrid', function()
feed('gg')
screen:expect{grid=[[
## grid 1
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*12
{11:test/functional/fixtures/bigfile.txt }|
[3:-----------------------------------------------------]|
## grid 2
@@ -3850,21 +2209,12 @@ describe('ext_multigrid', function()
screen:try_resize(48, 8)
screen:expect{grid=[[
## grid 1
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*6
{11:[No Name] }|
[3:------------------------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
]], win_viewport={
@@ -3885,12 +2235,7 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3912,12 +2257,7 @@ describe('ext_multigrid', function()
screen:expect{grid=[[
## grid 1
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
- [2:------------------------------------------------]|
+ [2:------------------------------------------------]|*6
{11:[No Name] [+] }|
[3:------------------------------------------------]|
## grid 2
@@ -3938,35 +2278,19 @@ describe('ext_multigrid', function()
command('split')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
[4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
@@ -3983,35 +2307,20 @@ describe('ext_multigrid', function()
command('setlocal winbar=very%=bar')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
{7:very bar}|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
[4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
@@ -4021,35 +2330,19 @@ describe('ext_multigrid', function()
command('setlocal winbar=')
screen:expect{grid=[[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
[4] = {win = {id = 1001}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0};
@@ -4062,35 +2355,21 @@ describe('ext_multigrid', function()
command('split')
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*6
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
{7:Set Up The Bars }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
|
## grid 4
{7:Set Up The Bars }|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]])
meths.input_mouse('left', 'press', '', 1, 6, 20)
@@ -4098,69 +2377,41 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'drag', '', 1, 7, 20)
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*7
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*4
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
{7:Set Up The Bars }|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
|
## grid 4
{7:Set Up The Bars }|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
]])
meths.input_mouse('left', 'drag', '', 1, 4, 20)
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*7
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
{7:Set Up The Bars }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
{7:Set Up The Bars }|
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]])
meths.input_mouse('left', 'press', '', 1, 12, 10)
@@ -4168,70 +2419,42 @@ describe('ext_multigrid', function()
meths.input_mouse('left', 'drag', '', 1, 10, 10)
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*5
{12:[No Name] }|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
- [3:-----------------------------------------------------]|
+ [3:-----------------------------------------------------]|*3
## grid 2
{7:Set Up The Bars }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
- |
- |
- |
+ |*3
## grid 4
{7:Set Up The Bars }|
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]])
eq(3, meths.get_option_value('cmdheight', {}))
meths.input_mouse('left', 'drag', '', 1, 12, 10)
screen:expect([[
## grid 1
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
- [4:-----------------------------------------------------]|
+ [4:-----------------------------------------------------]|*4
{11:[No Name] }|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
- [2:-----------------------------------------------------]|
+ [2:-----------------------------------------------------]|*7
{12:[No Name] }|
[3:-----------------------------------------------------]|
## grid 2
{7:Set Up The Bars }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
## grid 3
|
## grid 4
{7:Set Up The Bars }|
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
]])
eq(1, meths.get_option_value('cmdheight', {}))
end)
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index 40d7c8f21d..7ed65b52fa 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -29,10 +29,7 @@ describe("shell command :!", function()
})
screen:expect([[
{1: } |
- {4:~ }|
- {4:~ }|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*4
|
{3:-- TERMINAL --} |
]])
@@ -49,8 +46,7 @@ describe("shell command :!", function()
child_session.feed_data(":!printf foo; sleep 200\n")
screen:expect([[
|
- {4:~ }|
- {4:~ }|
+ {4:~ }|*2
{5: }|
:!printf foo; sleep 200 |
foo |
@@ -147,8 +143,7 @@ describe("shell command :!", function()
feed([[:!printf '\n'<CR>]])
screen:expect([[
:!printf '\n' |
- |
- |
+ |*2
{2:Press ENTER or type command to continue}^ |
]])
feed([[<CR>]])
@@ -186,8 +181,7 @@ describe("shell command :!", function()
feed([[\l]])
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{4: }|
]]..result..[[ |
f1 |
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua
index a6cd216d84..042b7dbabf 100644
--- a/test/functional/ui/popupmenu_spec.lua
+++ b/test/functional/ui/popupmenu_spec.lua
@@ -48,11 +48,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -64,11 +60,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -81,11 +73,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -97,11 +85,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
bar^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]]}
end)
@@ -111,11 +95,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -127,11 +107,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -143,11 +119,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
spam^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -159,11 +131,7 @@ describe('ui/ext_popupmenu', function()
screen:expect([[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
@@ -172,11 +140,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -188,11 +152,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -204,11 +164,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
bar^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -220,11 +176,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -236,11 +188,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -252,11 +200,7 @@ describe('ui/ext_popupmenu', function()
screen:expect([[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
@@ -272,13 +216,8 @@ describe('ui/ext_popupmenu', function()
}
feed('<Esc>:sign <Tab>')
screen:expect({grid = [[
- |
- |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ |*2
+ {1:~ }|*5
:sign define^ |
]], popupmenu = {
items = expected_wildpum,
@@ -288,13 +227,8 @@ describe('ui/ext_popupmenu', function()
meths.select_popupmenu_item(-1, true, false, {})
screen:expect({grid = [[
- |
- |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ |*2
+ {1:~ }|*5
:sign ^ |
]], popupmenu = {
items = expected_wildpum,
@@ -304,13 +238,8 @@ describe('ui/ext_popupmenu', function()
meths.select_popupmenu_item(5, true, false, {})
screen:expect({grid = [[
- |
- |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ |*2
+ {1:~ }|*5
:sign unplace^ |
]], popupmenu = {
items = expected_wildpum,
@@ -320,25 +249,15 @@ describe('ui/ext_popupmenu', function()
meths.select_popupmenu_item(-1, true, true, {})
screen:expect({grid = [[
- |
- |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ |*2
+ {1:~ }|*5
:sign ^ |
]]})
feed('<Tab>')
screen:expect({grid = [[
- |
- |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ |*2
+ {1:~ }|*5
:sign define^ |
]], popupmenu = {
items = expected_wildpum,
@@ -348,13 +267,8 @@ describe('ui/ext_popupmenu', function()
meths.select_popupmenu_item(5, true, true, {})
screen:expect({grid = [[
- |
- |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ |*2
+ {1:~ }|*5
:sign unplace^ |
]]})
@@ -364,11 +278,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -380,11 +290,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
spam^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -396,11 +302,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
spam^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -412,11 +314,7 @@ describe('ui/ext_popupmenu', function()
screen:expect([[
|
bar^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
@@ -424,11 +322,7 @@ describe('ui/ext_popupmenu', function()
screen:expect({grid = [[
|
bar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:sign define^ |
]], popupmenu = {
items = expected_wildpum,
@@ -440,11 +334,7 @@ describe('ui/ext_popupmenu', function()
screen:expect({grid = [[
|
bar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:sign list^ |
]], popupmenu = {
items = expected_wildpum,
@@ -456,11 +346,7 @@ describe('ui/ext_popupmenu', function()
screen:expect({grid = [[
|
bar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:sign ^ |
]], popupmenu = {
items = expected_wildpum,
@@ -472,11 +358,7 @@ describe('ui/ext_popupmenu', function()
screen:expect({grid = [[
|
bar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:sign jump^ |
]]})
@@ -489,8 +371,7 @@ describe('ui/ext_popupmenu', function()
{6:fo x the foo }{1: }|
{7:bar }{1: }|
{7:spam }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- INSERT --} |
]])
@@ -501,8 +382,7 @@ describe('ui/ext_popupmenu', function()
{7:fo x the foo }{1: }|
{7:bar }{1: }|
{6:spam }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- INSERT --} |
]])
@@ -513,8 +393,7 @@ describe('ui/ext_popupmenu', function()
{7:fo x the foo }{1: }|
{7:bar }{1: }|
{7:spam }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- INSERT --} |
]])
@@ -522,11 +401,7 @@ describe('ui/ext_popupmenu', function()
screen:expect([[
|
bar^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
@@ -570,11 +445,7 @@ describe('ui/ext_popupmenu', function()
screen:expect([[
|
bar |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:sign jump^ |
]])
end
@@ -602,8 +473,7 @@ describe('ui/ext_popupmenu', function()
{6:aa }{1: }|
{7:bb }{1: }|
{7:cc }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- Keyword Local completion (^N^P) }{5:match 1 of 3} |
]])
@@ -614,8 +484,7 @@ describe('ui/ext_popupmenu', function()
{7:aa }{1: }|
{7:bb }{1: }|
{6:cc }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- Keyword Local completion (^N^P) }{5:match 3 of 3} |
]])
@@ -626,8 +495,7 @@ describe('ui/ext_popupmenu', function()
{7:aa }{1: }|
{7:bb }{1: }|
{7:cc }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- Keyword Local completion (^N^P) }{8:Back at original} |
]])
@@ -635,11 +503,7 @@ describe('ui/ext_popupmenu', function()
screen:expect([[
aa bb cc |
bb^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
end)
@@ -681,11 +545,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
January^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=month_expected,
@@ -736,11 +596,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
January^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=month_expected,
@@ -792,11 +648,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
January^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=month_expected,
@@ -807,11 +659,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
January^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=month_expected,
@@ -837,14 +685,7 @@ describe('ui/ext_popupmenu', function()
feed(':sign ')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign ^ |
]])
eq(0, funcs.wildmenumode())
@@ -852,14 +693,7 @@ describe('ui/ext_popupmenu', function()
feed('<tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign define^ |
]], popupmenu={items=wild_expected, pos=0, anchor={1, 9, 6}}}
eq(1, funcs.wildmenumode())
@@ -867,42 +701,21 @@ describe('ui/ext_popupmenu', function()
feed('<left>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign ^ |
]], popupmenu={items=wild_expected, pos=-1, anchor={1, 9, 6}}}
feed('<left>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign unplace^ |
]], popupmenu={items=wild_expected, pos=5, anchor={1, 9, 6}}}
feed('x')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign unplacex^ |
]])
feed('<esc>')
@@ -911,14 +724,7 @@ describe('ui/ext_popupmenu', function()
feed(':sign <S-tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign unplace^ |
]], popupmenu={items=wild_expected, pos=5, anchor={1, 9, 6}}}
feed('<esc>')
@@ -930,13 +736,10 @@ describe('ui/ext_popupmenu', function()
feed(':b lå<tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:långfile2 }|
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:långfile1 }|
:b långfile1^ |
]], popupmenu={
@@ -960,11 +763,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
foo^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -976,11 +775,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]], popupmenu={
items=expected,
@@ -992,11 +787,7 @@ describe('ui/ext_popupmenu', function()
screen:expect{grid=[[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]]}
feed('<RightMouse><0,0>')
@@ -1005,20 +796,14 @@ describe('ui/ext_popupmenu', function()
{7:^foo } |
{7:bar }{1: }|
{7:baz }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('<esc>')
screen:expect([[
|
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end)
@@ -1295,47 +1080,21 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
+ [4:--------------------------------]|*8
{3:[No Name] [Preview][+] }|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*9
{4:[No Name] [+] }|
[3:--------------------------------]|
## grid 2
aa bb cc dd ee ff gg hh ii jj |
aa^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
## grid 3
{2:-- }{5:match 1 of 10} |
## grid 4
aa bb cc dd ee ff gg hh ii jj |
aa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 5
{s:aa }{c: }|
{n:bb }{c: }|
@@ -1352,12 +1111,7 @@ describe('builtin popupmenu', function()
screen:expect([[
aa bb cc dd ee ff gg hh ii jj |
aa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{3:[No Name] [Preview][+] }|
aa bb cc dd ee ff gg hh ii jj |
aa^ |
@@ -1381,47 +1135,21 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*9
{4:[No Name] [+] }|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
+ [4:--------------------------------]|*8
{3:[No Name] [Preview][+] }|
[3:--------------------------------]|
## grid 2
aa bb cc dd ee ff gg hh ii jj |
aa^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
## grid 3
{2:-- }{5:match 1 of 10} |
## grid 4
aa bb cc dd ee ff gg hh ii jj |
aa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 5
{s:aa }{c: }|
{n:bb }{c: }|
@@ -1448,12 +1176,7 @@ describe('builtin popupmenu', function()
{n:hh }{s: }{4: }|
aa bb cc dd ee ff gg hh ii jj |
aa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{3:[No Name] [Preview][+] }|
{2:-- }{5:match 1 of 10} |
]])
@@ -1469,24 +1192,9 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
+ [4:--------------------------------]|*4
{3:[No Name] [Preview][+] }|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*13
{4:[No Name] [+] }|
[3:--------------------------------]|
## grid 2
@@ -1561,24 +1269,9 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
+ [4:--------------------------------]|*8
{3:[No Name] [Preview][+] }|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*9
{4:[No Name] [+] }|
[3:--------------------------------]|
## grid 2
@@ -1649,24 +1342,9 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*9
{4:[No Name] [+] }|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
- [4:--------------------------------]|
+ [4:--------------------------------]|*8
{3:[No Name] [Preview][+] }|
[3:--------------------------------]|
## grid 2
@@ -1747,21 +1425,7 @@ describe('builtin popupmenu', function()
{n:one }{1: }|
{n:two }{1: }|
{n:three }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*15
{2:-- }{8:Back at original} |
]])
feed('<C-N>')
@@ -1774,16 +1438,7 @@ describe('builtin popupmenu', function()
{s:one }{1: }|
{n:two }{1: }|
{n:three }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*10
{4:[No Name] [+] }|
{2:-- }{5:match 1 of 3} |
]])
@@ -1821,39 +1476,25 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
+ [4:--------------------]│[2:-----------]|*6
{4:[No Name] [+] }{3:<Name] [+] }|
[3:--------------------------------]|
## grid 2
aaa aab aac|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:vsplit |
## grid 4
aaa aab aac |
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
]]}
else
screen:expect([[
aaa aab aac │aaa aab aac|
^ │ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
{4:[No Name] [+] }{3:<Name] [+] }|
:vsplit |
]])
@@ -1863,30 +1504,19 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
- [4:--------------------]│[2:-----------]|
+ [4:--------------------]│[2:-----------]|*6
{4:[No Name] [+] }{3:<Name] [+] }|
[3:--------------------------------]|
## grid 2
aaa aab aac|
bbb aaa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
{2:-- }{5:match 1 of 3} |
## grid 4
aaa aab aac |
bbb aaa^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 5
{s: aaa }|
{n: aab }|
@@ -1911,30 +1541,21 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
+ [4:-----------]│[2:--------------------]|*6
{3:<Name] [+] }{4:[No Name] [+] }|
[3:--------------------------------]|
## grid 2
aaa aab aac |
bbb aaa |
c aaa^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{2:-- }{5:match 1 of 3} |
## grid 4
aaa aab aac|
bbb aaa |
c aaa |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 5
{s: aaa }|
{n: aab }|
@@ -1959,21 +1580,14 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
+ [4:-----------]│[2:--------------------]|*6
{3:<Name] [+] }{4:[No Name] [+] }|
[3:--------------------------------]|
## grid 2
aaa aab aac |
bbb aaa |
c aaabcdef ccc aaa^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
## grid 3
{2:-- }{5:match 1 of 4} |
## grid 4
@@ -1981,8 +1595,7 @@ describe('builtin popupmenu', function()
bbb aaa |
c aaabcdef |
ccc aaa |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 5
{s: aaa }|
{n: aab }|
@@ -2008,12 +1621,7 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
- [4:-----------]│[2:--------------------]|
+ [4:-----------]│[2:--------------------]|*6
{3:<Name] [+] }{4:[No Name] [+] }|
[3:--------------------------------]|
## grid 2
@@ -2021,8 +1629,7 @@ describe('builtin popupmenu', function()
bbb aaa |
c aaabcdef ccc aaa |
aaa^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
## grid 3
{2:-- }{5:match 1 of 6} |
## grid 4
@@ -2354,20 +1961,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice}|
{1:~ }{n: text }|
{1:~ }{n: thing }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
{2:-- INSERT --} |
]])
@@ -2379,19 +1973,7 @@ describe('builtin popupmenu', function()
{n:choice }{1: }|
{n:text }{1: }|
{s:thing }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*13
{2:-- INSERT --} |
]])
@@ -2402,20 +1984,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice}|
{1:~ }{s: text }|
{1:~ }{n: thing }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
{2:-- INSERT --} |
]])
@@ -2438,8 +2007,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice }{1: }|
{1:~ }{s: text }{1: }|
{1:~ }{n: thing }{1: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- INSERT --} |
]])
@@ -2451,9 +2019,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice }{1: }|
{1:~ }{s: text }{1: }|
{1:~ }{n: thing }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]])
@@ -2499,20 +2065,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice}|
{1:~ }{n: text }|
{1:~ }{n: thing }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
{2:-- INSERT --} |
]])
@@ -2525,8 +2078,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice }|
{1:~ }{n: text }|
{1:~ }{n: thing }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- INSERT --} |
]])
end)
@@ -2536,24 +2088,7 @@ describe('builtin popupmenu', function()
feed('isome rightleft ')
screen:expect([[
^ tfelthgir emos|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*18
{2:-- INSERT --} |
]])
@@ -2565,20 +2100,7 @@ describe('builtin popupmenu', function()
{1: }{n: eciohc }{1: ~}|
{1: }{n: txet }{1: ~}|
{1: }{n: gniht }{1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*14
{2:-- INSERT --} |
]])
@@ -2589,44 +2111,14 @@ describe('builtin popupmenu', function()
{1: }{n: eciohc }{1: ~}|
{1: }{n: txet }{1: ~}|
{1: }{n: gniht }{1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*14
{2:-- INSERT --} |
]])
feed('<c-y>')
screen:expect([[
^ drow tfelthgir emos|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*18
{2:-- INSERT --} |
]])
@@ -2634,42 +2126,14 @@ describe('builtin popupmenu', function()
feed('<esc>:sign ')
screen:expect{grid=[[
drow tfelthgir emos|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*18
:sign ^ |
]]}
feed('<tab>')
screen:expect{grid=[[
drow tfelthgir emos|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*12
{1: }{s: define }{1: ~}|
{1: }{n: jump }{1: ~}|
{1: }{n: list }{1: ~}|
@@ -2692,24 +2156,17 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
+ [2:-------------------]│[4:--------------------]|*4
{3:[No Name] [+] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
tfelthgir emos|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
## grid 3
{2:-- INSERT --} |
## grid 4
^ tfelthgir emos|
- {1: ~}|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*3
## grid 5
{c: }{n: drow }|
{s: }{n: eciohc }|
@@ -2731,24 +2188,19 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
+ [2:-------------------]│[4:--------------------]|*4
{3:[No Name] [+] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
tfelthgir emos|
|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
## grid 3
{2:-- INSERT --} |
## grid 4
tfelthgir emos|
^ |
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
## grid 5
{c: }{n: drow}|
{s: }{n: eciohc}|
@@ -2770,31 +2222,25 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
+ [2:-------------------]│[4:--------------------]|*4
{3:[No Name] [+] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
tfelthgir emos|
|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
## grid 3
^ |
## grid 4
tfelthgir emos|
|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
]]}
else
screen:expect([[
tfelthgir emos│ tfelthgir emos|
│ |
- {1: ~}│{1: ~}|
- {1: ~}│{1: ~}|
+ {1: ~}│{1: ~}|*2
{3:[No Name] [+] }{4:[No Name] [+] }|
^ |
]])
@@ -2804,24 +2250,19 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
- [2:-------------------]│[4:--------------------]|
+ [2:-------------------]│[4:--------------------]|*4
{3:[No Name] [+] }{4:[No Name] [+] }|
[3:----------------------------------------]|
## grid 2
tfelthgir emos|
|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
## grid 3
define^ |
## grid 4
tfelthgir emos|
|
- {1: ~}|
- {1: ~}|
+ {1: ~}|*2
## grid 5
{s:define }{c: }|
{n:jump }{s: }|
@@ -2927,9 +2368,7 @@ describe('builtin popupmenu', function()
{1:~ }{s: wordey x extrainfo }{1: }|
{1:~ }{n: thing }{1: }|
{1:~ }{n: sneaky bar }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]])
@@ -2939,9 +2378,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: wordey x extrainfo }{1: }|
{1:~ }{n: thing }{1: }|
{1:~ }{n: sneaky bar }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]])
@@ -2951,21 +2388,14 @@ describe('builtin popupmenu', function()
{1:~ }{n: wordey x extrainfo }{1: }|
{1:~ }{n: thing }{1: }|
{1:~ }{s: sneaky bar }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- INSERT --} |
]])
feed('<esc>')
screen:expect([[
xx secre^t |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
|
]])
end)
@@ -2980,22 +2410,14 @@ describe('builtin popupmenu', function()
feed(':sign ')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign ^ |
]])
feed('<Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3008,8 +2430,7 @@ describe('builtin popupmenu', function()
feed('<Right><Right>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{s: list }{1: }|
@@ -3022,8 +2443,7 @@ describe('builtin popupmenu', function()
feed('<C-N>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3036,8 +2456,7 @@ describe('builtin popupmenu', function()
feed('<C-P>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{s: list }{1: }|
@@ -3050,8 +2469,7 @@ describe('builtin popupmenu', function()
feed('<Left>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{s: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3065,14 +2483,7 @@ describe('builtin popupmenu', function()
feed('<C-E>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign ^ |
]])
@@ -3080,14 +2491,7 @@ describe('builtin popupmenu', function()
feed('<Tab><C-P><C-P><C-Y>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign unplace^ |
]])
@@ -3095,8 +2499,7 @@ describe('builtin popupmenu', function()
feed('<C-U>sign define <Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: culhl= }{1: }|
{1:~ }{n: icon= }{1: }|
{1:~ }{n: linehl= }{1: }|
@@ -3109,8 +2512,7 @@ describe('builtin popupmenu', function()
feed('<Space><Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: culhl= }{1: }|
{1:~ }{n: icon= }{1: }|
{1:~ }{n: linehl= }{1: }|
@@ -3123,12 +2525,7 @@ describe('builtin popupmenu', function()
feed('<C-U>e Xnamedi<Tab><Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{1:~ }{s: XdirA/ }{1: }|
{1:~ }{n: XfileA }{1: }|
:e Xnamedir/XdirA/^ |
@@ -3138,12 +2535,7 @@ describe('builtin popupmenu', function()
feed('<Down>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{1:~ }{s: XdirB/ }{1: }|
{1:~ }{n: XfileB }{1: }|
:e Xnamedir/XdirA/XdirB/^ |
@@ -3153,12 +2545,7 @@ describe('builtin popupmenu', function()
feed('<Up>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{1:~ }{s: XdirA/ }{1: }|
{1:~ }{n: XfileA }{1: }|
:e Xnamedir/XdirA/^ |
@@ -3169,12 +2556,7 @@ describe('builtin popupmenu', function()
feed(':<C-U>sign <Tab><C-A>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{4: }|
:sign define jump list place und|
efine unplace^ |
@@ -3184,12 +2566,7 @@ describe('builtin popupmenu', function()
feed('<Left>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{4: }|
:sign define jump list place und|
efine unplac^e |
@@ -3201,11 +2578,7 @@ describe('builtin popupmenu', function()
feed('<C-U>sign <Tab><C-D>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4: }|
:sign define |
define |
@@ -3216,8 +2589,7 @@ describe('builtin popupmenu', function()
feed('<C-U><CR>:sign <S-Tab><C-P>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3231,14 +2603,7 @@ describe('builtin popupmenu', function()
feed('<C-U><CR>:sign <Tab><Esc>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]])
@@ -3246,14 +2611,7 @@ describe('builtin popupmenu', function()
feed(':sign <Tab>x')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign definex^ |
]])
@@ -3264,10 +2622,7 @@ describe('builtin popupmenu', function()
{3:[No Name] }|
{1::}sign define |
{1::}sign defin^e |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{4:[Command Line] }|
:sign define |
]])
@@ -3277,12 +2632,7 @@ describe('builtin popupmenu', function()
feed(':sign u<Tab><C-N><C-N>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{1:~ }{n: undefine }{1: }|
{1:~ }{n: unplace }{1: }|
:sign u^ |
@@ -3292,10 +2642,7 @@ describe('builtin popupmenu', function()
feed('<C-U>bu<Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{s: bufdo }{1: }|
{n: buffer }{1: }|
{n: buffers }{1: }|
@@ -3307,14 +2654,7 @@ describe('builtin popupmenu', function()
feed('<C-E><C-U>sign <Tab><BS>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign defin^ |
]])
@@ -3322,14 +2662,7 @@ describe('builtin popupmenu', function()
feed('<C-E><C-U>sign <Tab><C-W>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign ^ |
]])
@@ -3337,14 +2670,7 @@ describe('builtin popupmenu', function()
feed('<C-E><C-U>sign <Tab><C-U>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:^ |
]])
@@ -3353,14 +2679,7 @@ describe('builtin popupmenu', function()
feed('sign xyz<Esc>:sign <Tab><C-E><Up>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:sign xyz^ |
]])
@@ -3371,9 +2690,7 @@ describe('builtin popupmenu', function()
feed(':cn<Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4: }|
:cn |
cnewer cnoreabbrev |
@@ -3384,9 +2701,7 @@ describe('builtin popupmenu', function()
feed('s')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4: }|
:cn |
cnewer cnoreabbrev |
@@ -3402,11 +2717,7 @@ describe('builtin popupmenu', function()
feed(':e あいう/<Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{1:~ }{s: 123 }{1: }|
{1:~ }{n: abc }{1: }|
{1:~ }{n: xyz }{1: }|
@@ -3418,8 +2729,7 @@ describe('builtin popupmenu', function()
feed(':sign <Tab><PageDown>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3431,8 +2741,7 @@ describe('builtin popupmenu', function()
feed('<PageDown>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3444,8 +2753,7 @@ describe('builtin popupmenu', function()
feed('<PageDown>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3457,8 +2765,7 @@ describe('builtin popupmenu', function()
feed('<PageDown>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3470,8 +2777,7 @@ describe('builtin popupmenu', function()
feed('<C-U>sign <Tab><Right><Right><PageDown>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3485,8 +2791,7 @@ describe('builtin popupmenu', function()
feed('<C-U>sign <Tab><PageUp>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3498,8 +2803,7 @@ describe('builtin popupmenu', function()
feed('<PageUp>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3511,8 +2815,7 @@ describe('builtin popupmenu', function()
feed('<PageUp>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{s: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3524,8 +2827,7 @@ describe('builtin popupmenu', function()
feed('<PageUp>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3539,12 +2841,7 @@ describe('builtin popupmenu', function()
feed('<Esc>:set wildchazz<Left><Left><Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{1:~ }{s: wildchar }{1: }|
{1:~ }{n: wildcharm }{1: }|
:set wildchar^zz |
@@ -3552,14 +2849,7 @@ describe('builtin popupmenu', function()
feed('<C-E>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:set wildcha^zz |
]])
@@ -3567,14 +2857,7 @@ describe('builtin popupmenu', function()
feed('<Esc>:set wildchazz<Left><Left><Tab><C-Y>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
:set wildchar^zz |
]])
@@ -3586,9 +2869,7 @@ describe('builtin popupmenu', function()
feed(':b lå<tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{4:långfile2 }|
|
{1:~ }|
@@ -3614,14 +2895,7 @@ describe('builtin popupmenu', function()
{1:~ }|
{4:långfile2 }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
{1:~ }{s: långfile1 }{1: }|
{3:lå}{n: långfile2 }{3: }|
:b långfile1^ |
@@ -3636,14 +2910,7 @@ describe('builtin popupmenu', function()
{1:~ }|
{4:långfile2 }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
{1:~ }{n: långfile1 }{1: }|
{3:lå}{n: långfile2 }{3: }|
:b långfile^ |
@@ -3658,17 +2925,7 @@ describe('builtin popupmenu', function()
feed(':e compdir/<tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
{1:~ }{s: file1 }{1: }|
{1:~ }{n: file2 }{1: }|
:e compdir/file1^ |
@@ -3683,11 +2940,7 @@ describe('builtin popupmenu', function()
feed(':echoerr "fail"|echoerr "error"<cr>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4: }|
{6:fail} |
{6:error} |
@@ -3697,8 +2950,7 @@ describe('builtin popupmenu', function()
feed(':sign <tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3711,11 +2963,7 @@ describe('builtin popupmenu', function()
feed('d')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4: }|
{6:fail} |
{6:error} |
@@ -3734,12 +2982,7 @@ describe('builtin popupmenu', function()
feed(':sign u<Tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
:sign un^ |
]]}
eq(0, funcs.wildmenumode())
@@ -3748,10 +2991,7 @@ describe('builtin popupmenu', function()
feed('<Tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{1:~ }{s: undefine }{1: }|
{1:~ }{n: unplace }{1: }|
:sign undefine^ |
@@ -3762,10 +3002,7 @@ describe('builtin popupmenu', function()
feed('<Tab>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{1:~ }{n: undefine }{1: }|
{1:~ }{s: unplace }{1: }|
:sign unplace^ |
@@ -3779,9 +3016,7 @@ describe('builtin popupmenu', function()
feed('$')
feed(':sign <Tab>')
screen:expect([[
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|*3
aaaa {s: define } |
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3805,8 +3040,7 @@ describe('builtin popupmenu', function()
feed(':sign <C-E>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3820,8 +3054,7 @@ describe('builtin popupmenu', function()
feed('<C-E>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: define }{1: }|
{1:~ }{s: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3834,14 +3067,7 @@ describe('builtin popupmenu', function()
feed('<Esc>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]])
@@ -3851,8 +3077,7 @@ describe('builtin popupmenu', function()
feed(':sign <Esc>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3865,14 +3090,7 @@ describe('builtin popupmenu', function()
feed('<Esc>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]])
@@ -3882,8 +3100,7 @@ describe('builtin popupmenu', function()
feed([[:sign <C-\><C-\>]])
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{s: define }{1: }|
{1:~ }{n: jump }{1: }|
{1:~ }{n: list }{1: }|
@@ -3896,14 +3113,7 @@ describe('builtin popupmenu', function()
feed('<C-N>')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*8
|
]])
end)
@@ -3919,22 +3129,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*7
[3:--------------------------------]|
## grid 2
some long prefix before the ^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
{2:-- INSERT --} |
## grid 4
@@ -3948,10 +3147,7 @@ describe('builtin popupmenu', function()
some long prefix before the ^ |
{1:~ }{n: word }{c: }|
{1:~ }{n: choice}{s: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{2:-- INSERT --} |
]])
end
@@ -3967,22 +3163,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*7
[3:--------------------------------]|
## grid 2
some long prefix before the ^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
{2:-- INSERT --} |
## grid 4
@@ -4000,8 +3185,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: choice}|
{1:~ }{n: text }|
{1:~ }{n: thing }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:-- INSERT --} |
]])
end
@@ -4031,22 +3215,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*7
[3:--------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
{2:-- INSERT --} |
## grid 4
@@ -4056,11 +3229,7 @@ describe('builtin popupmenu', function()
screen:expect([[
^ |
{1:~ }{n: 哦哦哦哦哦哦哦哦哦>}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{2:-- INSERT --} |
]])
end
@@ -4079,39 +3248,23 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*7
[3:--------------------------------]|
## grid 2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
## grid 3
{2:-- INSERT --} |
## grid 4
- {n: 哦哦哦哦哦哦哦哦哦>}{c: }|
- {n: 哦哦哦哦哦哦哦哦哦>}{c: }|
- {n: 哦哦哦哦哦哦哦哦哦>}{s: }|
- {n: 哦哦哦哦哦哦哦哦哦>}{s: }|
+ {n: 哦哦哦哦哦哦哦哦哦>}{c: }|*2
+ {n: 哦哦哦哦哦哦哦哦哦>}{s: }|*2
]], float_pos={[4] = {{id = -1}, 'NW', 2, 1, 11, false, 100}}})
else
screen:expect([[
^ |
- {1:~ }{n: 哦哦哦哦哦哦哦哦哦>}{c: }|
- {1:~ }{n: 哦哦哦哦哦哦哦哦哦>}{c: }|
- {1:~ }{n: 哦哦哦哦哦哦哦哦哦>}{s: }|
- {1:~ }{n: 哦哦哦哦哦哦哦哦哦>}{s: }|
- {1:~ }|
- {1:~ }|
+ {1:~ }{n: 哦哦哦哦哦哦哦哦哦>}{c: }|*2
+ {1:~ }{n: 哦哦哦哦哦哦哦哦哦>}{s: }|*2
+ {1:~ }|*2
{2:-- INSERT --} |
]])
end
@@ -4133,18 +3286,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 2, 0, 4)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
@@ -4167,18 +3313,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
@@ -4200,18 +3339,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
|
## grid 4
@@ -4233,28 +3365,18 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'bar' |
]]})
else
screen:expect([[
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:let g:menustr = 'bar' |
]])
end
@@ -4264,18 +3386,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 2, 2, 20)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'bar' |
## grid 4
@@ -4287,8 +3402,7 @@ describe('builtin popupmenu', function()
feed('<RightMouse><20,2>')
screen:expect([[
^popup menu test |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{1:~ }{n: foo }{1: }|
{1:~ }{n: bar }{1: }|
:let g:menustr = 'b{n: baz } |
@@ -4298,18 +3412,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('left', 'press', '', 4, 2, 2)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'baz' |
]]})
@@ -4317,10 +3424,7 @@ describe('builtin popupmenu', function()
feed('<LeftMouse><22,5>')
screen:expect([[
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:let g:menustr = 'baz' |
]])
end
@@ -4330,18 +3434,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 2, 0, 4)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'baz' |
## grid 4
@@ -4364,18 +3461,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'drag', '', 2, 3, 6)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'baz' |
## grid 4
@@ -4398,18 +3488,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'release', '', 2, 1, 6)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'foo' |
]]})
@@ -4417,10 +3500,7 @@ describe('builtin popupmenu', function()
feed('<RightRelease><6,1>')
screen:expect([[
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:let g:menustr = 'foo' |
]])
end
@@ -4431,18 +3511,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 2, 0, 4)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'foo' |
## grid 4
@@ -4466,18 +3539,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('move', '', '', 2, 3, 6)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'foo' |
## grid 4
@@ -4501,18 +3567,11 @@ describe('builtin popupmenu', function()
meths.input_mouse('left', 'press', '', 2, 2, 6)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*5
[3:--------------------------------]|
## grid 2
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
## grid 3
:let g:menustr = 'bar' |
]]})
@@ -4520,10 +3579,7 @@ describe('builtin popupmenu', function()
feed('<LeftMouse><6,2>')
screen:expect([[
^popup menu test |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:let g:menustr = 'bar' |
]])
end
@@ -4535,11 +3591,9 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 5, 1, 20)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*2
{3:[No Name] [+] }|
- [5:--------------------------------]|
- [5:--------------------------------]|
+ [5:--------------------------------]|*2
[3:--------------------------------]|
## grid 2
popup menu test |
@@ -4569,11 +3623,9 @@ describe('builtin popupmenu', function()
meths.input_mouse('left', 'press', '', 4, 2, 2)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*2
{3:[No Name] [+] }|
- [5:--------------------------------]|
- [5:--------------------------------]|
+ [5:--------------------------------]|*2
[3:--------------------------------]|
## grid 2
popup menu test |
@@ -4602,11 +3654,9 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 6, 1, 14)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*2
{3:[No Name] [+] }|
- [5:---------------]│[6:----------------]|
- [5:---------------]│[6:----------------]|
+ [5:---------------]│[6:----------------]|*2
[3:--------------------------------]|
## grid 2
popup menu test |
@@ -4639,11 +3689,9 @@ describe('builtin popupmenu', function()
meths.input_mouse('left', 'press', '', 4, 0, 2)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*2
{3:[No Name] [+] }|
- [5:---------------]│[6:----------------]|
- [5:---------------]│[6:----------------]|
+ [5:---------------]│[6:----------------]|*2
[3:--------------------------------]|
## grid 2
popup menu test |
@@ -4675,11 +3723,9 @@ describe('builtin popupmenu', function()
meths.input_mouse('right', 'press', '', 6, 1, 14)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*2
{3:[No Name] [+] }|
- [5:---------------]│[6:----------------]|
- [5:---------------]│[6:----------------]|
+ [5:---------------]│[6:----------------]|*2
[3:--------------------------------]|
## grid 2
popup menu test |
@@ -4712,11 +3758,9 @@ describe('builtin popupmenu', function()
meths.input_mouse('left', 'press', '', 4, 1, 2)
screen:expect({grid=[[
## grid 1
- [2:--------------------------------]|
- [2:--------------------------------]|
+ [2:--------------------------------]|*2
{3:[No Name] [+] }|
- [5:---------------]│[6:----------------]|
- [5:---------------]│[6:----------------]|
+ [5:---------------]│[6:----------------]|*2
[3:--------------------------------]|
## grid 2
popup menu test |
@@ -4779,13 +3823,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: Select Line }{1: }|
{1:~ }{n: Select Block }{1: }|
{1:~ }{n: Select All }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
:popup PopUp |
]])
@@ -4804,13 +3842,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: Select Line }{1: }|
{1:~ }{n: Select Block }{1: }|
{1:~ }{n: Select All }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
:popup PopUp |
]])
@@ -4829,13 +3861,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: Select Line }{1: }|
{1:~ }{n: Select Block }{1: }|
{1:~ }{n: Select All }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
:popup PopUp |
]])
@@ -4859,13 +3885,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: Select Line }{1: }|
{1:~ }{n: Select Block }{1: }|
{1:~ }{n: Select All }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*7
changed |
]])
@@ -4875,22 +3895,7 @@ describe('builtin popupmenu', function()
one two three four five |
and one two {7:^X}three four five |
one more two three four five |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*16
pasted |
]])
@@ -4911,12 +3916,7 @@ describe('builtin popupmenu', function()
{1:~ }{n: Select Line }{1: }|
{1:~ }{n: Select Block }{1: }|
{1:~ }{n: Select All }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
:popup PopUp |
]])
@@ -4951,9 +3951,7 @@ describe('builtin popupmenu', function()
{s:aword1 W extra text 1 }{1: }|
{n:aword2 W extra text 2 }{1: }|
{n:aword3 W extra text 3 }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- }{5:match 1 of 3} |
]])
end)
@@ -4977,9 +3975,7 @@ describe('builtin popupmenu', function()
{s:aword1 }{ks:W }{xs:extra text 1 }{1: }|
{n:aword2 }{kn:W }{xn:extra text 2 }{1: }|
{n:aword3 }{kn:W }{xn:extra text 3 }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
{2:-- }{5:match 1 of 3} |
]], attrs)
end)
diff --git a/test/functional/ui/quickfix_spec.lua b/test/functional/ui/quickfix_spec.lua
index 9f072915e2..523e657249 100644
--- a/test/functional/ui/quickfix_spec.lua
+++ b/test/functional/ui/quickfix_spec.lua
@@ -49,9 +49,7 @@ describe('quickfix selection highlight', function()
Line 4 |
Line 5 |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
end)
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index 0406cc9771..e1358a0335 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -30,19 +30,9 @@ describe('screen', function()
end)
it('default initial screen', function()
- screen:expect([[
+ screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
{1:[No Name] }|
|
]])
@@ -125,17 +115,7 @@ local function screen_tests(linegrid)
command('set laststatus=2')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
{1:[No Name] }|
|
]])
@@ -143,17 +123,7 @@ local function screen_tests(linegrid)
feed('<c-l>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
{1:[No Name] }|
|
]], reset=true}
@@ -161,17 +131,10 @@ local function screen_tests(linegrid)
command('split')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:[No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:[No Name] }|
|
]])
@@ -179,17 +142,10 @@ local function screen_tests(linegrid)
feed('<c-l>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:[No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:[No Name] }|
|
]], reset=true}
@@ -202,17 +158,10 @@ local function screen_tests(linegrid)
command('sp')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:[No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:[No Name] }|
|
]])
@@ -223,17 +172,10 @@ local function screen_tests(linegrid)
command('resize 8')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
{1:[No Name] }|
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{3:[No Name] }|
|
]])
@@ -245,34 +187,20 @@ local function screen_tests(linegrid)
command('vsp')
screen:expect([[
^ │ │ |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{1:[No Name] }{3:[No Name] [No Name] }|
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:[No Name] }|
|
]])
insert('hello')
screen:expect([[
hell^o │hello │hello |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
hello |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:[No Name] [+] }|
|
]])
@@ -288,17 +216,10 @@ local function screen_tests(linegrid)
insert('hello')
screen:expect([[
hell^o │hello │hello |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
hello |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{3:[No Name] [+] }|
|
]])
@@ -308,33 +229,17 @@ local function screen_tests(linegrid)
screen:expect([[
{4: }{5:4}{4:+ [No Name] }{2: + [No Name] }{3: }{4:X}|
hell^o2 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
|
]])
command('tabprevious')
screen:expect([[
{2: }{6:4}{2:+ [No Name] }{4: + [No Name] }{3: }{4:X}|
hell^o │hello │hello |
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
- {0:~ }│{0:~ }│{0:~ }|
+ {0:~ }│{0:~ }│{0:~ }|*5
{1:[No Name] [+] }{3:[No Name] [+] [No Name] [+] }|
hello |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{3:[No Name] [+] }|
|
]])
@@ -345,34 +250,14 @@ local function screen_tests(linegrid)
screen:expect([[
{4: [No Name] }{2: [No Name] }{3: }{4:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
|
]])
feed(':echo "'..string.rep('x\\n', 11)..'"<cr>')
screen:expect([[
{1: }|
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
+ x |*11
|
{7:Press ENTER or type command to continue}^ |
]])
@@ -381,34 +266,13 @@ local function screen_tests(linegrid)
screen:expect([[
{4: [No Name] }{2: [No Name] }{3: }{4:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
|
]])
feed(':echo "'..string.rep('x\\n', 12)..'"<cr>')
screen:expect([[
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
- x |
+ x |*12
|
{7:Press ENTER or type command to continue}^ |
]])
@@ -417,17 +281,7 @@ local function screen_tests(linegrid)
screen:expect([[
{4: [No Name] }{2: [No Name] }{3: }{4:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
|
]])
@@ -439,17 +293,7 @@ local function screen_tests(linegrid)
command('vsplit')
screen:expect([[
^foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
+ foo │foo |*11
{1:[No Name] [+] }{3:[No Name] [+] }|
|
]])
@@ -457,17 +301,8 @@ local function screen_tests(linegrid)
feed('<PageDown>')
screen:expect([[
^foo │foo |
- foo │foo |
- foo │foo |
- foo │foo |
- bar │foo |
- bar │foo |
- bar │foo |
- bar │foo |
- bar │foo |
- bar │foo |
- bar │foo |
- bar │foo |
+ foo │foo |*3
+ bar │foo |*8
{1:[No Name] [+] }{3:[No Name] [+] }|
|
]])
@@ -475,17 +310,8 @@ local function screen_tests(linegrid)
screen:expect([[
{4: }{5:2}{4:+ [No Name] }{2: + [No Name] }{3: }{4:X}|
^foo |
- foo |
- foo |
- foo |
- bar |
- bar |
- bar |
- bar |
- bar |
- bar |
- bar |
- bar |
+ foo |*3
+ bar |*8
|
]])
end)
@@ -497,17 +323,7 @@ local function screen_tests(linegrid)
screen:expect([[
{2: + [No Name] }{4: [No Name] }{3: }{4:X}|
hell^o |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
|
]])
@@ -515,17 +331,7 @@ local function screen_tests(linegrid)
screen:expect([[
{4: + [No Name] }{2: [No Name] }{3: }{4:X}|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
|
]])
end)
@@ -538,16 +344,7 @@ local function screen_tests(linegrid)
line 1 |
line 2 |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
{2:-- INSERT --} |
]])
end)
@@ -563,17 +360,7 @@ local function screen_tests(linegrid)
screen:expect([[
0123^456 |
789 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*11
1,5 All |
]])
end)
@@ -584,18 +371,7 @@ local function screen_tests(linegrid)
feed(':ls')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
:ls^ |
]])
end)
@@ -604,15 +380,7 @@ local function screen_tests(linegrid)
feed(':ls<cr>')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
{1: }|
:ls |
1 %a "[No Name]" line 1 |
@@ -789,9 +557,7 @@ local function screen_tests(linegrid)
feed('iresize')
screen:expect([[
resize^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{2:-- INSERT --} |
]])
end)
@@ -821,17 +587,14 @@ local function screen_tests(linegrid)
screen:expect([[
{2: + [No Name] }{3: }|
resiz^e |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
screen:try_resize(30, 6)
screen:expect([[
{2: + [No Name] }{3: }|
resiz^e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
eq(29, meths.get_var('echospace'))
@@ -840,15 +603,7 @@ local function screen_tests(linegrid)
it('messages from the same Ex command as resize are visible #22225', function()
feed(':set columns=20 | call<CR>')
screen:expect([[
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ |*9
{1: }|
{8:E471: Argument requi}|
{8:red} |
@@ -858,27 +613,12 @@ local function screen_tests(linegrid)
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
|
]])
feed(':set columns=0<CR>')
screen:expect([[
- |
- |
- |
- |
- |
+ |*5
{1: }|
{8:E594: Need a}|
{8:t least 12 c}|
@@ -892,18 +632,7 @@ local function screen_tests(linegrid)
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
|
]])
end)
@@ -915,15 +644,7 @@ local function screen_tests(linegrid)
feed(':ls<CR>')
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
{1: }|
:ls |
1 %a "[No Name]" line 1 |
@@ -932,18 +653,7 @@ local function screen_tests(linegrid)
feed('<F1>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
TEST |
]])
end)
@@ -956,35 +666,13 @@ local function screen_tests(linegrid)
feed('ifooj')
screen:expect([[
foo^j |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
{2:-- INSERT --} |
]])
feed('k')
screen:expect([[
fo^o |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
|
]])
end)
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua
index dc7ef666bd..1e8af4225a 100644
--- a/test/functional/ui/searchhl_spec.lua
+++ b/test/functional/ui/searchhl_spec.lua
@@ -32,10 +32,7 @@ describe('search highlighting', function()
screen:expect([[
some ^text |
more text |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
/text |
]])
end)
@@ -46,11 +43,7 @@ describe('search highlighting', function()
feed("gg/text")
screen:expect{grid=[[
{6:+-- 2 lines: some text·················}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
/text^ |
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 3, curline = 0, curcol = 8, linecount = 2, sum_scroll_delta = 0};
@@ -279,22 +272,16 @@ describe('search highlighting', function()
screen:expect([[
{2: } |
{2:^ } |
- {2: } |
- {2: } |
- {2: } |
- {2: } |
+ {2: } |*4
/^ |
]])
-- Test that highlights are preserved after moving the cursor.
feed("j")
screen:expect([[
- {2: } |
- {2: } |
+ {2: } |*2
{2:^ } |
- {2: } |
- {2: } |
- {2: } |
+ {2: } |*3
/^ |
]])
@@ -306,21 +293,15 @@ describe('search highlighting', function()
screen:expect([[
{2: }|
{2:^ }|
- {2: }|
- {2: }|
- {2: }|
- {2: }|
+ {2: }|*4
^/ |
]])
feed("j")
screen:expect([[
- {2: }|
- {2: }|
+ {2: }|*2
{2:^ }|
- {2: }|
- {2: }|
- {2: }|
+ {2: }|*3
^/ |
]])
end)
@@ -349,8 +330,7 @@ describe('search highlighting', function()
{3:foo} bar baz │{MATCH:%d+}: {2:foo}{MATCH:%s+}|
bar baz {2:foo} │{MATCH:%d+}: {2:foo}{MATCH:%s+}|
bar {2:foo} baz │{MATCH:%d+}: {2:foo}{MATCH:%s+}|
- {1:~ }│{MATCH:.*}|
- {1:~ }│{MATCH:.*}|
+ {1:~ }│{MATCH:.*}|*2
{5:[No Name] [+] }{3:term }|
/foo^ |
]])
@@ -368,10 +348,7 @@ describe('search highlighting', function()
screen:expect([[
the first {3:li}ne │the first {2:li}ne |
in a {2:li}ttle file │in a {2:li}ttle file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/li^ |
]])
@@ -380,10 +357,7 @@ describe('search highlighting', function()
screen:expect([[
the first {2:li}ne │the first {2:li}ne |
in a {3:li}ttle file │in a {2:li}ttle file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/li^ |
]])
@@ -391,10 +365,7 @@ describe('search highlighting', function()
screen:expect([[
the first {3:li}ne │the first {2:li}ne |
in a {2:li}ttle file │in a {2:li}ttle file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/li^ |
]])
@@ -402,10 +373,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a {3:lit}tle file │in a {2:lit}tle file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/lit^ |
]])
@@ -413,10 +381,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a {2:^lit}tle file │in a {2:lit}tle file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/lit |
]])
@@ -424,10 +389,7 @@ describe('search highlighting', function()
screen:expect([[
the {3:fir}st line │the {2:fir}st line |
in a little file │in a little file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/fir^ |
]])
@@ -436,10 +398,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a li{3:ttle} file │in a li{2:ttle} file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/ttle^ |
]])
@@ -448,10 +407,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a {2:^lit}tle file │in a {2:lit}tle file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
|
]])
eq('lit', eval('@/'))
@@ -461,10 +417,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a ^little file │in a little file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
:noh |
]])
@@ -472,20 +425,14 @@ describe('search highlighting', function()
screen:expect([[
the {3:first} line │the {2:first} line |
in a little file │in a little file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/first^ |
]])
feed('<esc>')
screen:expect([[
the first line │the first line |
in a ^little file │in a little file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
|
]])
@@ -507,30 +454,21 @@ describe('search highlighting', function()
screen:expect([[
the {2:fi}rst line │the {2:fi}rst line |
in a little {2:^fi}le │in a little {2:fi}le |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/fi |
]])
feed('//')
screen:expect([[
the {3:fi}rst line │the {2:fi}rst line |
in a little {2:fi}le │in a little {2:fi}le |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
//^ |
]])
feed('<C-g>')
screen:expect([[
the {2:fi}rst line │the {2:fi}rst line |
in a little {3:fi}le │in a little {2:fi}le |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
//^ |
]])
feed('<Esc>')
@@ -541,10 +479,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a little {3:file} │in a little {2:file} |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/file^ |
]])
feed('<Esc>')
@@ -557,10 +492,7 @@ describe('search highlighting', function()
screen:expect([[
the {3:first} line │the {2:first} line |
in a little file │in a little file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/first^ |
]])
feed('<Esc>')
@@ -570,10 +502,7 @@ describe('search highlighting', function()
screen:expect([[
the first line │the first line |
in a {3:little} file │in a {2:little} file |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
/little^ |
]])
feed('<Esc>')
@@ -590,10 +519,7 @@ describe('search highlighting', function()
screen:expect([[
not the {3:mat}ch you're looking for |
the {2:mat}ch is here |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
/mat/e^ |
]])
@@ -602,10 +528,7 @@ describe('search highlighting', function()
screen:expect([[
not the {2:mat}ch you're looking for |
the {3:mat}ch is here |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
/mat/e^ |
]])
@@ -613,10 +536,7 @@ describe('search highlighting', function()
screen:expect([[
not the {2:mat}ch you're looking for |
the {2:ma^t}ch is here |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
/mat/e |
]])
end)
@@ -628,8 +548,7 @@ describe('search highlighting', function()
screen:expect([[
|
a repeated {2:^line } |
- {2:a} repeated {2:line } |
- {2:a} repeated {2:line } |
+ {2:a} repeated {2:line } |*2
{2:a} repeated line |
{1:~ }|
{4:search hit BOTTOM, continuing at TOP} |
@@ -675,10 +594,7 @@ describe('search highlighting', function()
screen:expect{grid=[[
very {5:spec^ial}{2: te}{6:xt} |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{4:search hit BOTTOM, continuing at TOP} |
]], win_viewport={
[2] = {win = {id = 1000}, topline = 0, botline = 3, curline = 0, curcol = 11, linecount = 2, sum_scroll_delta = 0};
@@ -688,21 +604,14 @@ describe('search highlighting', function()
feed("zf4j")
screen:expect{grid=[[
{8:^+-- 2 lines: very special text·········}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
{4:search hit BOTTOM, continuing at TOP} |
]]}
command("%foldopen")
screen:expect([[
very {5:spec^ial}{2: te}{6:xt} |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
{4:search hit BOTTOM, continuing at TOP} |
]])
@@ -710,10 +619,7 @@ describe('search highlighting', function()
screen:expect([[
very spec{2:^ial te}xt |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:call clearmatches() |
]])
@@ -723,10 +629,7 @@ describe('search highlighting', function()
screen:expect([[
very {5:spec}{7:^ial}{2: te}xt |
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
:syntax keyword MyGroup special |
]])
end)
@@ -737,11 +640,7 @@ describe('search highlighting', function()
feed(':%g@a/b')
screen:expect([[
{3:a/b}/c |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
:%g@a/b^ |
]])
end)
diff --git a/test/functional/ui/sign_spec.lua b/test/functional/ui/sign_spec.lua
index 1c0a6f663b..bf2830f2f0 100644
--- a/test/functional/ui/sign_spec.lua
+++ b/test/functional/ui/sign_spec.lua
@@ -38,16 +38,7 @@ describe('Signs', function()
{1:𐌢̀́̂̃̅̄𐌢̀́̂̃̅̄}a |
{1:𠜎̀́̂̃̄̅}b |
{2: }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
end)
@@ -64,15 +55,7 @@ describe('Signs', function()
{2: }b |
{1:>>}c |
{2: }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
end)
@@ -85,16 +68,7 @@ describe('Signs', function()
a |
b |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
end)
@@ -115,8 +89,7 @@ describe('Signs', function()
{1:>>}b |
{2: }c |
{2: } |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{4:[No Name] [+] }|
{2: }{3:a }|
{1:>>}b |
@@ -145,15 +118,7 @@ describe('Signs', function()
{2: }{6: 2 }{8:b }|
{2: }{7: 3 }c |
{1:>>}{7: 4 }{8:^ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- Check that 'statuscolumn' correctly applies numhl
@@ -172,16 +137,7 @@ describe('Signs', function()
{1:>>}a |
{1:>>}b |
{8:>>}{3:^c }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
feed('k')
@@ -189,16 +145,7 @@ describe('Signs', function()
{1:>>}a |
{8:>>}{3:^b }|
{1:>>}c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
command('set nocursorline')
@@ -206,16 +153,7 @@ describe('Signs', function()
{1:>>}a |
{1:>>}^b |
{1:>>}c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
command('set cursorline cursorlineopt=line')
@@ -223,16 +161,7 @@ describe('Signs', function()
{1:>>}a |
{1:>>}{3:^b }|
{1:>>}c |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
command('set cursorlineopt=number')
@@ -243,15 +172,7 @@ describe('Signs', function()
{8:>>}^b |
{1:>>}c |
{5: } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- Check that 'statuscolumn' cursorline/signcolumn highlights are the same (#21726)
@@ -282,15 +203,7 @@ describe('Signs', function()
{8:XX}{1:>>}{6: 2 }b |
{1:>>}WW{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- With the default setting, we get the sign with the top id.
@@ -300,15 +213,7 @@ describe('Signs', function()
{1:>>}{6: 2 }b |
WW{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- "auto:3" accommodates all the signs we defined so far.
@@ -318,15 +223,7 @@ describe('Signs', function()
{8:XX}{1:>>}{2: }{6: 2 }b |
{8:XX}{1:>>}WW{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- Check "yes:9".
@@ -336,15 +233,7 @@ describe('Signs', function()
{8:XX}{1:>>}{2: }{6: 2 }b |
{8:XX}{1:>>}WW{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- Check "auto:N" larger than the maximum number of signs defined in
@@ -355,15 +244,7 @@ describe('Signs', function()
{8:XX}{1:>>}{2: }{6: 2 }b |
{8:XX}{1:>>}WW{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]]}
-- line deletion deletes signs.
@@ -373,16 +254,7 @@ describe('Signs', function()
{1:>>}{8:XX}{6: 1 }a |
{8:XX}{1:>>}{6: 2 }^b |
{2: }{6: 3 } |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*10
|
]])
end)
@@ -397,15 +269,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- should support up to 8 signs at minimum
@@ -415,15 +279,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- should keep the same sign size when signs are not exceeding
@@ -436,15 +292,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- should resize itself when signs are exceeding minimum but
@@ -457,15 +305,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- should not increase size because sign with existing id is moved
@@ -477,15 +317,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
command('sign place 4 line=1 name=pietSearch buffer=1')
@@ -500,15 +332,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
end)
@@ -526,15 +350,7 @@ describe('Signs', function()
{6: 2 }b |
{6: 3 }c |
{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
-- single column with 1 sign with text and one sign without
@@ -544,15 +360,7 @@ describe('Signs', function()
{2: }{6: 2 }b |
{2: }{6: 3 }c |
{2: }{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
end)
@@ -570,15 +378,7 @@ describe('Signs', function()
{8: 2 }b |
{6: 3 }c |
{6: 4 }^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
end)
@@ -589,12 +389,7 @@ describe('Signs', function()
feed(':sign place<cr>')
screen:expect([[
{1:>>} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
{4: }|
:sign place |
{9:--- Signs ---} |
@@ -607,18 +402,7 @@ describe('Signs', function()
feed('<cr>')
screen:expect([[
{1:>>}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*12
|
]])
end)
@@ -636,15 +420,7 @@ describe('Signs', function()
{2: }^c |
{2: }d |
>>e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
command('sign unplace 10002')
@@ -653,15 +429,7 @@ describe('Signs', function()
^c |
d |
e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*9
|
]])
end)
@@ -680,13 +448,7 @@ describe('Signs', function()
{2: }c |
{2: }d |
>>e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
|
]])
command('sign unplace 10002')
@@ -697,13 +459,7 @@ describe('Signs', function()
c |
d |
e |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
|
]])
end)
diff --git a/test/functional/ui/spell_spec.lua b/test/functional/ui/spell_spec.lua
index d18e19e5b2..cc39790dca 100644
--- a/test/functional/ui/spell_spec.lua
+++ b/test/functional/ui/spell_spec.lua
@@ -125,8 +125,7 @@ describe("'spell'", function()
Not |
and her^e |
and here. |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
-- Undo also updates the next line (go to command line to remove message)
@@ -137,8 +136,7 @@ describe("'spell'", function()
Not |
and here^. |
{2:and} here. |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
-- Folding an empty line does not remove Cap in next line
@@ -149,8 +147,7 @@ describe("'spell'", function()
Not |
{10:^+-- 2 lines: and here.·························································}|
{2:and} here. |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
-- Folding the end of a sentence does not remove Cap in next line
@@ -161,9 +158,7 @@ describe("'spell'", function()
{2:another} missing cap her^e |
{10:+-- 2 lines: Not·······························································}|
{2:and} here. |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
-- Cap is correctly applied in the first row of a window
@@ -172,10 +167,7 @@ describe("'spell'", function()
{2:another} missing cap her^e |
{10:+-- 2 lines: Not·······························································}|
{2:and} here. |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
-- Adding an empty line does not remove Cap in "mod_bot" area
@@ -186,8 +178,7 @@ describe("'spell'", function()
{2:another} missing cap here |
{10:+-- 2 lines: Not·······························································}|
{2:and} here. |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
-- Multiple empty lines does not remove Cap in the line after
@@ -220,9 +211,7 @@ describe("'spell'", function()
test test test test$ |
|
{2:end} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{9:-- INSERT --} |
]])
feed('x')
@@ -231,9 +220,7 @@ describe("'spell'", function()
test test test test$ |
|
{2:end} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{9:-- INSERT --} |
]])
end)
@@ -251,10 +238,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:spelin^g}{7: }{8:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed(']s')
@@ -262,10 +246,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:speling}{7: }{8:^mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed(']s')
@@ -273,10 +254,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:^speling}{7: }{8:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{6:search hit BOTTOM, continuing at TOP} |
]])
exec('echo ""')
@@ -287,10 +265,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} {1:func}({5:void}); |
{7:// I am a }{8:^speling}{7: }{8:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed('[s')
@@ -298,10 +273,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} {1:^func}({5:void}); |
{7:// I am a }{8:speling}{7: }{8:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
curbufmeths.del_extmark(ns, id)
@@ -311,10 +283,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} ^func({5:void}); |
{7:// I am a }{8:speling}{7: mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed('[s')
@@ -322,10 +291,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:^speling}{7: mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{6:search hit TOP, continuing at BOTTOM} |
]])
exec('echo ""')
@@ -334,10 +300,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:^speling}{7: }{8:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed(']s')
@@ -345,10 +308,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:speling}{7: }{8:^mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
-- "noplainbuffer" shouldn't change spellchecking behavior with syntax enabled
@@ -359,10 +319,7 @@ describe("'spell'", function()
{3:#include }{4:<stdbool.h>} |
{5:bool} func({5:void}); |
{7:// I am a }{8:^speling}{7: }{8:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
-- no spellchecking with "noplainbuffer" and syntax disabled
@@ -371,10 +328,7 @@ describe("'spell'", function()
#include <stdbool.h> |
bool func(void); |
// I am a ^speling mistakke |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed(']s')
@@ -382,10 +336,7 @@ describe("'spell'", function()
#include <stdbool.h> |
bool func(void); |
// I am a ^speling mistakke |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{6:search hit BOTTOM, continuing at TOP} |
]])
exec('echo ""')
@@ -395,10 +346,7 @@ describe("'spell'", function()
#include <{1:stdbool}.h> |
{1:bool} {1:func}(void); |
// I am a {1:^speling} {1:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
feed('[s')
@@ -406,10 +354,7 @@ describe("'spell'", function()
#include <{1:stdbool}.h> |
{1:bool} {1:^func}(void); |
// I am a {1:speling} {1:mistakke} |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
diff --git a/test/functional/ui/statuscolumn_spec.lua b/test/functional/ui/statuscolumn_spec.lua
index 6eaf15cfad..74a7e3607f 100644
--- a/test/functional/ui/statuscolumn_spec.lua
+++ b/test/functional/ui/statuscolumn_spec.lua
@@ -451,9 +451,7 @@ describe('statuscolumn', function()
{4:wrapped 1 15}{5:aaaaaaaaa^ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}|
{4:wrapped 2 15}{5:aaaaaaaaaaaaaaaaaaa }|
{1:virtual-1 15}END |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
-- Also test virt_lines when 'cpoptions' includes "n"
@@ -562,19 +560,9 @@ describe('statuscolumn', function()
it('clicks and highlights work with control characters', function()
meths.set_option_value('statuscolumn', '\t%#NonText#\1%0@MyClickFunc@\t\1%T\t%##\1', {})
screen:expect{grid=[[
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
+ {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |*4
{1:^I}{0:^A^I^A^I}{1:^A}^aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
- {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |
+ {1:^I}{0:^A^I^A^I}{1:^A}aaaaa |*8
|
]], attr_ids={
[0] = {foreground = Screen.colors.Blue, bold = true}; -- NonText
@@ -702,8 +690,7 @@ describe('statuscolumn', function()
---------8 aaaaa |
virt |
---------9 aaaaa |
- ~ |
- ~ |
+ ~ |*2
|
]])
end)
@@ -718,11 +705,7 @@ describe('statuscolumn', function()
[No Name] [+] |
:1set stc=%^l |
:2 |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
[Command Line] |
: |
]])
@@ -749,9 +732,7 @@ describe('statuscolumn', function()
screen:expect([[
aaaaa |
^aaaaa |
- aaaaa |
- aaaaa |
- aaaaa |
+ aaaaa |*3
|
]])
-- width correctly estimated with "w_nrwidth_line_count" when setting 'nu'
diff --git a/test/functional/ui/statusline_spec.lua b/test/functional/ui/statusline_spec.lua
index 182e0cdadf..a88c03f565 100644
--- a/test/functional/ui/statusline_spec.lua
+++ b/test/functional/ui/statusline_spec.lua
@@ -66,11 +66,7 @@ for _, model in ipairs(mousemodels) do
meths.set_option_value('statusline', '\t%#NonText#\1%0@MyClickFunc@\t\1%T\t%##\1', {})
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:^I}{0:^A^I^A^I}{1:^A }|
|
]]}
@@ -178,11 +174,7 @@ for _, model in ipairs(mousemodels) do
command('vsplit')
screen:expect{grid=[[
^ │ |
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
- {0:~ }│{0:~ }|
+ {0:~ }│{0:~ }|*5
{1:Clicky stuff Clicky stuff}|
|
]]}
@@ -241,39 +233,16 @@ describe('global statusline', function()
it('works', function()
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*13
{2:[No Name] 0,0-1 All}|
|
]])
feed('i<CR><CR>')
screen:expect([[
- |
- |
+ |*2
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*11
{2:[No Name] [+] 3,1 All}|
{3:-- INSERT --} |
]])
@@ -283,9 +252,7 @@ describe('global statusline', function()
command('vsplit | split | vsplit | vsplit | wincmd l | split | 2wincmd l | split')
screen:expect([[
│ │ │^ |
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~ }│{1:~}│{1:~ }|*3
{1:~ }├────────────────┤{1:~}│{1:~ }|
{1:~ }│ │{1:~}│{1:~ }|
{1:~ }│{1:~ }│{1:~}│{1:~ }|
@@ -293,9 +260,7 @@ describe('global statusline', function()
{1:~ }│{1:~ }│{1:~}│ |
────────────────────┴────────────────┴─┤{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
{2:[No Name] 0,0-1 All}|
|
]])
@@ -305,39 +270,14 @@ describe('global statusline', function()
command('set laststatus=1')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*14
0,0-1 All |
]])
command('set laststatus=3')
screen:expect([[
^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*13
{2:[No Name] 0,0-1 All}|
|
]])
@@ -346,9 +286,7 @@ describe('global statusline', function()
command('set laststatus=2')
screen:expect([[
│ │ │^ |
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~ }│{1:~}│{1:~ }|*3
{1:~ }│{4:< Name] 0,0-1 }│{1:~}│{1:~ }|
{1:~ }│ │{1:~}│{1:~ }|
{1:~ }│{1:~ }│{1:~}│{1:~ }|
@@ -356,9 +294,7 @@ describe('global statusline', function()
{1:~ }│{1:~ }│{1:~}│ |
{4:<No Name] 0,0-1 All < Name] 0,0-1 <}│{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
{4:[No Name] 0,0-1 All <No Name] 0,0-1 All}|
|
]])
@@ -366,9 +302,7 @@ describe('global statusline', function()
command('set laststatus=3')
screen:expect([[
│ │ │^ |
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~ }│{1:~}│{1:~ }|*3
{1:~ }├────────────────┤{1:~}│{1:~ }|
{1:~ }│ │{1:~}│{1:~ }|
{1:~ }│{1:~ }│{1:~}│{1:~ }|
@@ -376,9 +310,7 @@ describe('global statusline', function()
{1:~ }│{1:~ }│{1:~}│ |
────────────────────┴────────────────┴─┤{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
{2:[No Name] 0,0-1 All}|
|
]])
@@ -386,9 +318,7 @@ describe('global statusline', function()
command('set laststatus=0')
screen:expect([[
│ │ │^ |
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~ }│{1:~}│{1:~ }|*3
{1:~ }│{4:< Name] 0,0-1 }│{1:~}│{1:~ }|
{1:~ }│ │{1:~}│{1:~ }|
{1:~ }│{1:~ }│{1:~}│{1:~ }|
@@ -396,19 +326,14 @@ describe('global statusline', function()
{1:~ }│{1:~ }│{1:~}│ |
{4:<No Name] 0,0-1 All < Name] 0,0-1 <}│{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*4
0,0-1 All |
]])
command('set laststatus=3')
screen:expect([[
│ │ │^ |
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
- {1:~ }│{1:~ }│{1:~}│{1:~ }|
+ {1:~ }│{1:~ }│{1:~}│{1:~ }|*3
{1:~ }├────────────────┤{1:~}│{1:~ }|
{1:~ }│ │{1:~}│{1:~ }|
{1:~ }│{1:~ }│{1:~}│{1:~ }|
@@ -416,9 +341,7 @@ describe('global statusline', function()
{1:~ }│{1:~ }│{1:~}│ |
────────────────────┴────────────────┴─┤{1:~ }|
│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*3
{2:[No Name] 0,0-1 All}|
|
]])
@@ -460,11 +383,7 @@ describe('global statusline', function()
feed('L')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
────────────────────────────────────────────────────────────|
0000;<control>;Cc;0;BN;;;;;N;NULL;;;; |
0001;<control>;Cc;0;BN;;;;;N;START OF HEADING;;;; |
@@ -479,11 +398,7 @@ describe('global statusline', function()
feed('j')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
────────────────────────────────────────────────────────────|
0001;<control>;Cc;0;BN;;;;;N;START OF HEADING;;;; |
0002;<control>;Cc;0;BN;;;;;N;START OF TEXT;;;; |
@@ -499,11 +414,7 @@ describe('global statusline', function()
screen:expect([[
{3: }{5:2}{3: t/f/f/bigfile.txt }{4: }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
────────────────────────────────────────────────────────────|
0002;<control>;Cc;0;BN;;;;;N;START OF TEXT;;;; |
0003;<control>;Cc;0;BN;;;;;N;END OF TEXT;;;; |
@@ -518,11 +429,7 @@ describe('global statusline', function()
screen:expect([[
{3: }{5:2}{3: t/f/f/bigfile.txt }{4: }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
────────────────────────────────────────────────────────────|
0001;<control>;Cc;0;BN;;;;;N;START OF HEADING;;;; |
0002;<control>;Cc;0;BN;;;;;N;START OF TEXT;;;; |
@@ -537,11 +444,7 @@ describe('global statusline', function()
screen:expect([[
{3: }{5:2}{3: t/f/f/bigfile.txt }{4: }|
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
────────────────────────────────────────────────────────────|
0002;<control>;Cc;0;BN;;;;;N;START OF TEXT;;;; |
0003;<control>;Cc;0;BN;;;;;N;END OF TEXT;;;; |
@@ -579,22 +482,14 @@ it('statusline is redrawn with :resize from <Cmd> mapping #19629', function()
feed('<Up>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
{1:[No Name] }|
- |
- |
+ |*2
]])
feed('<Down>')
screen:expect([[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
{1:[No Name] }|
|
]])
@@ -614,11 +509,7 @@ it('showcmdloc=statusline does not show if statusline is too narrow', function()
command('1vsplit')
screen:expect([[
^ │ |
- {0:~}│{0:~ }|
- {0:~}│{0:~ }|
- {0:~}│{0:~ }|
- {0:~}│{0:~ }|
- {0:~}│{0:~ }|
+ {0:~}│{0:~ }|*5
{1:< }{2:[No Name] }|
|
]])
@@ -668,8 +559,7 @@ it('statusline is redrawn on various state changes', function()
screen:expect([[
^ |
~ |
- |
- |
+ |*2
]])
feed('qQ')
screen:expect([[
@@ -682,8 +572,7 @@ it('statusline is redrawn on various state changes', function()
screen:expect([[
^ |
~ |
- |
- |
+ |*2
]])
-- Visual mode change #23932
@@ -765,12 +654,10 @@ it("shows correct ruler in cmdline with no statusline", function()
command '1wincmd w'
screen:expect [[
^ |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:[No Name] 1longlonglong }|
│ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
3longlonglong |
]]
-- Window 2 is current. It has no statusline, so cmdline should show its
@@ -778,24 +665,20 @@ it("shows correct ruler in cmdline with no statusline", function()
command '2wincmd w'
screen:expect [[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[No Name] 1longlonglong }|
^ │ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
2longlonglong |
]]
-- Window 3 is current. Cmdline should again show its ruler.
command '3wincmd w'
screen:expect [[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[No Name] 1longlonglong }|
│^ |
- {1:~ }│{1:~ }|
- {1:~ }│{1:~ }|
+ {1:~ }│{1:~ }|*2
3longlonglong |
]]
end)
diff --git a/test/functional/ui/syntax_conceal_spec.lua b/test/functional/ui/syntax_conceal_spec.lua
index 1391985823..c3406067bc 100644
--- a/test/functional/ui/syntax_conceal_spec.lua
+++ b/test/functional/ui/syntax_conceal_spec.lua
@@ -45,15 +45,9 @@ describe('Screen', function()
it("double characters.", function()
screen:expect([[
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
+ {1:∧} |*6
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -61,15 +55,10 @@ describe('Screen', function()
it('double characters and move the cursor one line up.', function()
feed("k")
screen:expect([[
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
+ {1:∧} |*5
^&& |
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -78,14 +67,9 @@ describe('Screen', function()
feed("gg")
screen:expect([[
^&& |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
+ {1:∧} |*5
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -95,13 +79,9 @@ describe('Screen', function()
screen:expect([[
{1:∧} |
^&& |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
+ {1:∧} |*4
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -109,15 +89,9 @@ describe('Screen', function()
it('double characters and then move the cursor to the beginning of the file and back to the end of the file.', function()
feed("ggG")
screen:expect([[
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
- {1:∧} |
+ {1:∧} |*6
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]])
end)
@@ -128,15 +102,9 @@ describe('Screen', function()
command("let &conceallevel=1")
command("syn keyword kLambda lambda conceal cchar=λ")
screen:expect([[
- {1:λ} |
- {1:λ} |
+ {1:λ} |*2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]])
end) -- Keyword
@@ -152,15 +120,9 @@ describe('Screen', function()
it('initially and conceal it.', function()
command("syn region rText start='<r>' end='</r>' conceal cchar=R")
screen:expect([[
- {1:R} |
- {1:R} |
+ {1:R} |*2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]])
end)
@@ -170,15 +132,9 @@ describe('Screen', function()
-- be replaced with cchar.
command("syn region rText matchgroup=rMatch start='<r>' end='</r>' concealends cchar=-")
screen:expect([[
- {1: } a region of text {1:-} |
- {1: } a region of text {1:-} |
+ {1: } a region of text {1:-} |*2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]])
end)
@@ -187,15 +143,11 @@ describe('Screen', function()
command("syn region rText contains=rText matchgroup=rMatch start='<r>' end='</r>' concealends cchar=-")
insert("<r> A region with <r> a nested <r> nested region.</r> </r> </r>\n")
screen:expect([[
- {1: } a region of text {1:-} |
- {1: } a region of text {1:-} |
+ {1: } a region of text {1:-} |*2
{1: } A region with {1: } a nested {1: } nested region.{1:-} |
{1:-} {1:-} |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -211,15 +163,9 @@ describe('Screen', function()
it("and turn on implicit concealing", function()
screen:expect([[
- {1:-} |
- {1:-} |
+ {1:-} |*2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*6
|
]])
end)
@@ -230,29 +176,19 @@ describe('Screen', function()
insert("<i> italian text </i>\n")
command("syn region iText start='<i>' end='</i>' cchar=*")
screen:expect([[
- {1:-} |
- {1:-} |
- <i> italian text </i> |
- <i> italian text </i> |
+ {1:-} |*2
+ <i> italian text </i> |*2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
command("syntax conceal on")
command("syn region iText start='<i>' end='</i>' cchar=*")
screen:expect([[
- {1:-} |
- {1:-} |
- {1:*} |
- {1:*} |
+ {1:-} |*2
+ {1:*} |*2
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -266,28 +202,14 @@ describe('Screen', function()
command("syn match Foo /foobar/ conceal cchar=&")
screen:expect([[
{1:&&&}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
|
]])
feed("i")
-- cursor should stay in place, not jump to column 16
screen:expect([[
{1:&&&}^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*8
{4:-- INSERT --} |
]])
end)
@@ -311,10 +233,7 @@ describe('Screen', function()
+ With cchar |
|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -327,10 +246,7 @@ describe('Screen', function()
{1:C} |
|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -343,10 +259,7 @@ describe('Screen', function()
{1:C} |
|
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -355,14 +268,9 @@ describe('Screen', function()
command("let &conceallevel=3")
screen:expect([[
// No Conceal |
- |
- |
- |
+ |*3
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
|
]])
end)
@@ -375,15 +283,10 @@ describe('Screen', function()
command("set cole=2")
feed('5Ofoo barf bar barf eggs<esc>')
screen:expect([[
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
foo barf bar barf egg^s |
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
@@ -398,18 +301,14 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
|
{2:[No Name] [+] }|
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*3
{3:[No Name] [+] }|
|
]])
feed('<c-w>w')
screen:expect([[
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*3
|
{3:[No Name] [+] }|
foo {1:b} bar {1:b} eggs |
@@ -423,29 +322,20 @@ describe('Screen', function()
it('in insert mode', function()
feed('i')
screen:expect([[
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
foo barf bar barf egg^s |
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:-- INSERT --} |
]])
feed('<up>')
screen:expect([[
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*3
foo barf bar barf egg^s |
foo {1:b} bar {1:b} eggs |
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:-- INSERT --} |
]])
end)
@@ -455,70 +345,45 @@ describe('Screen', function()
feed('gg')
screen:expect([[
^foo barf bar barf eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
feed('i')
screen:expect([[
^foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:-- INSERT --} |
]])
feed('<esc>')
screen:expect([[
^foo barf bar barf eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
feed('v')
screen:expect([[
^foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:-- VISUAL --} |
]])
feed('<esc>')
screen:expect([[
^foo barf bar barf eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
@@ -529,42 +394,27 @@ describe('Screen', function()
feed('gg')
screen:expect([[
^foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
feed('i')
screen:expect([[
^foo barf bar barf eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:-- INSERT --} |
]])
feed('<esc>')
screen:expect([[
^foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
@@ -572,28 +422,18 @@ describe('Screen', function()
feed('v')
screen:expect([[
^foo barf bar barf eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
{4:-- VISUAL --} |
]])
feed('<esc>')
screen:expect([[
^foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*4
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -601,15 +441,10 @@ describe('Screen', function()
it('and open line', function()
feed('o')
screen:expect([[
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*5
^ |
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{4:-- INSERT --} |
]])
end)
@@ -618,15 +453,10 @@ describe('Screen', function()
command('set cocu=i')
feed('o')
screen:expect([[
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*5
^ |
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{4:-- INSERT --} |
]])
end)
@@ -639,12 +469,9 @@ describe('Screen', function()
^foo barf bar barf eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -655,12 +482,9 @@ describe('Screen', function()
foo barf bar barf eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/^ |
]])
@@ -669,12 +493,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo barf bar barf eggs {3:x} |
foo {1:b} bar {1:b} eggs {5:x}y |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/x^ |
]])
@@ -683,12 +504,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs x |
foo barf bar barf eggs {3:xy} |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/xy^ |
]])
@@ -697,12 +515,9 @@ describe('Screen', function()
foo barf bar barf eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/^ |
]])
end)
@@ -717,12 +532,9 @@ describe('Screen', function()
foo barf bar barf eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/^ |
]])
@@ -731,12 +543,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs {3:x} |
foo {1:b} bar {1:b} eggs {5:x}y |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/x^ |
]])
@@ -745,12 +554,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs {3:xy} |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/xy^ |
]])
@@ -759,12 +565,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/^ |
]])
@@ -773,12 +576,9 @@ describe('Screen', function()
^foo barf bar barf eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -789,12 +589,9 @@ describe('Screen', function()
^foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
@@ -805,12 +602,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/^ |
]])
@@ -819,12 +613,9 @@ describe('Screen', function()
foo {1:b} bar {1:b} eggs |
foo barf bar barf eggs {3:x} |
foo {1:b} bar {1:b} eggs {5:x}y |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/x^ |
]])
@@ -833,12 +624,9 @@ describe('Screen', function()
foo barf bar barf eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
/^ |
]])
@@ -847,12 +635,9 @@ describe('Screen', function()
^foo {1:b} bar {1:b} eggs |
foo {1:b} bar {1:b} eggs x |
foo {1:b} bar {1:b} eggs xy |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]])
end)
@@ -865,40 +650,23 @@ describe('Screen', function()
feed(':3<cr>o a<Esc>ggV')
screen:expect{grid=[[
^f{6:oo }{1:b}{6: bar }{1:b}{6: eggs} |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
a |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*5
{4:-- VISUAL LINE --} |
]]}
feed(string.rep('j', 15))
screen:expect{grid=[[
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
- {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |
+ {6:foo }{1:b}{6: bar }{1:b}{6: eggs} |*8
^f{6:oo }{1:b}{6: bar }{1:b}{6: eggs} |
{4:-- VISUAL LINE --} |
]]}
feed(string.rep('k', 15))
screen:expect{grid=[[
^f{6:oo }{1:b}{6: bar }{1:b}{6: eggs} |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*2
a |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
- foo {1:b} bar {1:b} eggs |
+ foo {1:b} bar {1:b} eggs |*5
{4:-- VISUAL LINE --} |
]]}
end)
@@ -918,11 +686,7 @@ describe('Screen', function()
bbb |
ccc |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]]}
@@ -940,11 +704,7 @@ describe('Screen', function()
bbb |
^ccc |
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]]}
eq({{2, 0, {{'c', 0, 3}, {' ', 0, 50}}}, {3, 0, {{' ', 0, 53}}}}, grid_lines)
@@ -965,11 +725,7 @@ describe('Screen', function()
bbb |
ccc |
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]]}
@@ -987,11 +743,7 @@ describe('Screen', function()
bbb |
^ccc |
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]]}
eq({{2, 0, {{'c', 0, 3}, {' ', 0, 50}}}}, grid_lines)
@@ -1067,13 +819,7 @@ describe('Screen', function()
screen:expect{grid=[[
^c |
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*7
|
]]}
end)
diff --git a/test/functional/ui/tabline_spec.lua b/test/functional/ui/tabline_spec.lua
index befdb7c5d1..8f40e1db61 100644
--- a/test/functional/ui/tabline_spec.lua
+++ b/test/functional/ui/tabline_spec.lua
@@ -30,9 +30,7 @@ describe('ui/ext_tabline', function()
}
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]], condition=function()
eq({ id = 2 }, event_curtab)
@@ -42,9 +40,7 @@ describe('ui/ext_tabline', function()
command("tabNext")
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]], condition=function()
eq({ id = 1 }, event_curtab)
@@ -59,9 +55,7 @@ describe('ui/ext_tabline', function()
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]], condition=function()
eq({ id = 1}, event_curbuf)
@@ -77,9 +71,7 @@ describe('ui/ext_tabline', function()
}
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]], condition=function()
eq({ id = 2 }, event_curbuf)
@@ -107,16 +99,14 @@ describe("tabline", function()
screen:expect{grid=[[
{1:asdf }|
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
command('set tabline=jkl')
screen:expect{grid=[[
{1:jkl }|
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
end)
@@ -136,8 +126,7 @@ describe("tabline", function()
screen:expect{grid=[[
{1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^1 |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
assert_alive()
@@ -145,32 +134,27 @@ describe("tabline", function()
screen:expect{grid=[[
{1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^2 |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
meths.input_mouse('left', 'press', '', 0, 0, 0)
screen:expect{grid=[[
{1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^1 |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
meths.input_mouse('left', 'press', '', 0, 0, 39)
screen:expect{grid=[[
{1:<abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbc }|
tab^2 |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
|
]]}
meths.input_mouse('left', 'press', '', 0, 0, 40)
screen:expect{grid=[[
tab^1 |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]}
end)
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index 3201135b67..79903fd42f 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -28,8 +28,7 @@ describe("'wildmenu'", function()
feed(':sign <Tab>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1:define}{2: jump list > }|
:sign define^ |
]]}
@@ -37,8 +36,7 @@ describe("'wildmenu'", function()
feed('<Tab>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:define }{1:jump}{2: list > }|
:sign jump^ |
]]}
@@ -46,8 +44,7 @@ describe("'wildmenu'", function()
feed('<Tab>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:define jump }{1:list}{2: > }|
:sign list^ |
]]}
@@ -56,8 +53,7 @@ describe("'wildmenu'", function()
feed('<Tab><Tab><Tab><Tab>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:define jump list > }|
:sign ^ |
]]}
@@ -66,9 +62,7 @@ describe("'wildmenu'", function()
feed('<Space>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
:sign ^ |
]]}
@@ -78,8 +72,7 @@ describe("'wildmenu'", function()
feed(':sign <Esc>')
screen:expect{grid=[[
|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{1:define}{2: jump list > }|
:sign define^ |
]]}
@@ -89,9 +82,7 @@ describe("'wildmenu'", function()
feed('<Esc>')
screen:expect{grid=[[
^ |
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*3
|
]]}
end)
@@ -100,17 +91,14 @@ describe("'wildmenu'", function()
feed(':sign <tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
define jump list > |
:sign define^ |
]])
feed('<C-E>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign ^ |
]])
end)
@@ -119,17 +107,14 @@ describe("'wildmenu'", function()
feed(':sign <tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
define jump list > |
:sign define^ |
]])
feed('<tab><C-Y>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign jump^ |
]])
end)
@@ -139,8 +124,7 @@ describe("'wildmenu'", function()
feed(':sign <tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
define jump list > |
:sign define^ |
]])
@@ -154,16 +138,14 @@ describe("'wildmenu'", function()
feed(':sign <tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
define jump list > |
:sign define^ |
]])
feed('<space>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
[No Name] |
:sign define ^ |
]])
@@ -174,8 +156,7 @@ describe("'wildmenu'", function()
feed(':j<Tab><Tab><Tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
join jumps |
:j^ |
]])
@@ -183,8 +164,7 @@ describe("'wildmenu'", function()
feed('<BS><Tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
! # & < = > @ > |
:!^ |
]])
@@ -225,8 +205,7 @@ describe("'wildmenu'", function()
feed([[:sign <Tab>]]) -- Invoke wildmenu.
screen:expect{grid=[[
|
- ~ |
- ~ |
+ ~ |*2
define jump list > |
:sign define^ |
]]}
@@ -282,21 +261,16 @@ describe("'wildmenu'", function()
feed('<tab>') -- trigger wildmode full
screen:expect([[
[No Name] |
- |
- |
+ |*2
:set wildm |
- wildmenu wildmode |
- wildmenu wildmode |
+ wildmenu wildmode |*2
:set wildmenu^ |
]])
feed('<Esc>')
screen:expect([[
[No Name] |
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
|
]])
end)
@@ -311,18 +285,13 @@ describe("'wildmenu'", function()
feed(':sign u<tab>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
:sign un^ |
]])
feed('<tab>') -- trigger wildmode list
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
|
:sign un |
undefine unplace |
@@ -331,11 +300,7 @@ describe("'wildmenu'", function()
feed('<Esc>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
|
]])
@@ -343,8 +308,7 @@ describe("'wildmenu'", function()
feed(':sign un<tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
|
:sign un |
undefine unplace |
@@ -355,11 +319,7 @@ describe("'wildmenu'", function()
feed('<Esc>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
|
]])
end)
@@ -372,8 +332,7 @@ describe("'wildmenu'", function()
feed(':sign u<tab>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
|
:sign u |
undefine unplace |
@@ -382,8 +341,7 @@ describe("'wildmenu'", function()
feed('<tab>') -- trigger wildmode longest
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
|
:sign u |
undefine unplace |
@@ -392,11 +350,7 @@ describe("'wildmenu'", function()
feed('<Esc>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*5
|
]])
end)
@@ -409,8 +363,7 @@ describe("'wildmenu'", function()
feed('<c-d>')
screen:expect([[
|
- ~ |
- ~ |
+ ~ |*2
|
:set wildm |
wildmenu wildmode |
@@ -418,8 +371,7 @@ describe("'wildmenu'", function()
]])
feed('<c-d>')
screen:expect([[
- |
- |
+ |*2
:set wildm |
wildmenu wildmode |
:set wildm |
@@ -429,10 +381,7 @@ describe("'wildmenu'", function()
feed('<Esc>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
[No Name] |
|
]])
@@ -457,8 +406,7 @@ describe("'wildmenu'", function()
feed(':syntax <f2>')
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:case}{3: clear cluster > }|
:syntax case^ |
]]}
@@ -471,17 +419,14 @@ describe("'wildmenu'", function()
feed ':syntax <tab>'
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:syntax c^ |
]]}
feed '<tab>'
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:case clear cluster > }|
:syntax c^ |
]]}
@@ -489,9 +434,7 @@ describe("'wildmenu'", function()
feed '<tab>'
screen:expect{grid=[[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:syntax cc^ |
]]}
end)
@@ -522,9 +465,7 @@ describe('command line completion', function()
feed(':!<tab><bs>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:!Xtest-functional-viml-compl-dir^ |
]])
end)
@@ -535,8 +476,7 @@ describe('command line completion', function()
feed(':!echo $XTEST_<tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:XTEST_1}{3: XTEST_2 }|
:!echo $XTEST_1^ |
]])
@@ -552,8 +492,7 @@ describe('command line completion', function()
feed(':!echo $XTEST_<tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2:XTEST_1AaあB}{3: XTEST_2 }|
:!echo $XTEST_1AaあB^ |
]])
@@ -567,18 +506,14 @@ describe('command line completion', function()
feed(':sign unpla<S-Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:sign unplace^ |
]])
feed('<Space>buff<Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:sign unplace buffer=^ |
]])
end)
@@ -590,9 +525,7 @@ describe('command line completion', function()
feed(':sign <S-Tab>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
:sign unplace^ |
]])
end)
@@ -636,45 +569,35 @@ describe('ui/ext_wildmenu', function()
feed(':sign <tab>')
screen:expect{grid=[[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign define^ |
]], wildmenu_items=expected, wildmenu_pos=0}
feed('<tab>')
screen:expect{grid=[[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign jump^ |
]], wildmenu_items=expected, wildmenu_pos=1}
feed('<left><left>')
screen:expect{grid=[[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign ^ |
]], wildmenu_items=expected, wildmenu_pos=-1}
feed('<right>')
screen:expect{grid=[[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign define^ |
]], wildmenu_items=expected, wildmenu_pos=0}
feed('a')
screen:expect{grid=[[
|
- ~ |
- ~ |
- ~ |
+ ~ |*3
:sign definea^ |
]]}
end)
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua
index 78bbcd3a63..65fd5d31f5 100644
--- a/test/functional/ui/winbar_spec.lua
+++ b/test/functional/ui/winbar_spec.lua
@@ -38,16 +38,7 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*10
|
]])
-- winbar is excluded from the heights returned by winheight() and getwininfo()
@@ -62,16 +53,7 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars+++++++++++++++++++++++++++++++++++++++++++++}|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*10
|
]])
end)
@@ -81,16 +63,7 @@ describe('winbar', function()
screen:expect([[
{5:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*10
|
]])
end)
@@ -155,16 +128,13 @@ describe('winbar', function()
command('belowright vsplit | split | split | set winbar=')
screen:expect([[
│^ |
- {3:~ }│{3:~ }|
- {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|*2
{3:~ }│{4:[No Name] }|
{3:~ }│ |
- {3:~ }│{3:~ }|
- {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|*2
{3:~ }│{2:[No Name] }|
{3:~ }│ |
- {3:~ }│{3:~ }|
- {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|*2
{2:[No Name] [No Name] }|
|
]])
@@ -211,15 +181,7 @@ describe('winbar', function()
{1:Hello, I am a ruler: 2,11 }|
just some |
random tex^t |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*9
|
]]}
feed 'b'
@@ -227,15 +189,7 @@ describe('winbar', function()
{1:Hello, I am a ruler: 2,8 }|
just some |
random ^text |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*9
|
]]}
feed 'k'
@@ -243,15 +197,7 @@ describe('winbar', function()
{1:Hello, I am a ruler: 1,8 }|
just so^me |
random text |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*9
|
]]}
end)
@@ -261,15 +207,7 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*9
{4:[No Name] }|
|
]])
@@ -295,14 +233,7 @@ describe('winbar', function()
{10: }{11:4}{10: [No Name] }{1: [No Name] }{2: }{10:X}|
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*8
{4:[No Name] }|
|
]])
@@ -330,9 +261,7 @@ describe('winbar', function()
line i |
line sin(theta) |
line 8 |
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
|
]])
eq({5, 1}, meths.win_get_cursor(0))
@@ -348,9 +277,7 @@ describe('winbar', function()
{7:li}^ne i |
line sin(theta) |
line 8 |
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
{1:-- VISUAL --} |
]])
eq({6, 2}, meths.win_get_cursor(0))
@@ -366,9 +293,7 @@ describe('winbar', function()
line i |
line sin(theta) |
line 8 |
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
{1:-- VISUAL --} |
]])
eq({1, 2}, meths.win_get_cursor(0))
@@ -383,15 +308,11 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
{4:[No Name] }|
{1:Set Up The Bars }|
|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*3
{2:[No Name] }|
|
]])
@@ -402,15 +323,11 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
{4:[No Name] }|
{1:Set Up The Bars }|
|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*2
{2:[No Name] }|
|
]])
@@ -419,15 +336,11 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
+ {3:~ }|*2
{4:[No Name] }|
{1:Set Up The Bars }|
|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
{2:[No Name] }|
|
]])
@@ -438,17 +351,13 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
+ {3:~ }|*2
{4:[No Name] }|
{1:Set Up The Bars }|
|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*2
{2:[No Name] }|
- |
- |
- |
+ |*3
]])
eq(3, meths.get_option_value('cmdheight', {}))
@@ -456,15 +365,11 @@ describe('winbar', function()
screen:expect([[
{1:Set Up The Bars }|
^ |
- {3:~ }|
- {3:~ }|
+ {3:~ }|*2
{4:[No Name] }|
{1:Set Up The Bars }|
|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
{2:[No Name] }|
|
]])
@@ -500,15 +405,8 @@ describe('winbar', function()
{1:bar }|
^ |
{3:~ }{8: }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }{9:~ }{3: }|*6
+ {3:~ }|*3
|
]]}
meths.set_option_value('winbar', 'floaty bar', { scope = 'local', win = win.id })
@@ -517,14 +415,8 @@ describe('winbar', function()
^ |
{3:~ }{1:floaty bar }{3: }|
{3:~ }{8: }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }{9:~ }{3: }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }{9:~ }{3: }|*5
+ {3:~ }|*3
|
]]}
end)
@@ -537,8 +429,7 @@ describe('winbar', function()
screen:expect([[
{1:foo }│ |
^ │{3:~ }|
- {3:~ }│{3:~ }|
- {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|*2
{4:[No Name] }{2:[No Name] }|
|
]])
@@ -547,8 +438,7 @@ describe('winbar', function()
screen:expect([[
│{1:foo }|
{3:~ }│^ |
- {3:~ }│{3:~ }|
- {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|*2
{2:[No Name] }{4:[No Name] }|
|
]])
@@ -558,8 +448,7 @@ describe('winbar', function()
screen:expect([[
{1:foo }│^ |
│{3:~ }|
- {3:~ }│{3:~ }|
- {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|*2
{2:[No Name] }{4:[No Name] }|
|
]])
@@ -571,14 +460,7 @@ describe('winbar', function()
^ |
{4:[No Name] }|
|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*8
{2:[No Name] }|
|
]])
@@ -589,12 +471,7 @@ describe('winbar', function()
{4:[No Name] }|
{1:a }|
|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*6
{2:[No Name] }|
|
]])
@@ -641,13 +518,7 @@ describe('local winbar with tabs', function()
screen:expect([[
{4: [No Name] }{1: [No Name] }{2: }{4:X}|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*7
|
]])
command('tabnext')
@@ -655,12 +526,7 @@ describe('local winbar with tabs', function()
{1: [No Name] }{4: [No Name] }{2: }{4:X}|
{1:foo }|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*6
|
]]}
end)
@@ -675,11 +541,7 @@ describe('local winbar with tabs', function()
some |
goofy |
tex^t |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*5
|
]]}
@@ -688,13 +550,7 @@ describe('local winbar with tabs', function()
screen:expect{grid=[[
{4: + [No Name] }{1: [No Name] }{2: }{4:X}|
^ |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*7
|
]]}
@@ -705,10 +561,7 @@ describe('local winbar with tabs', function()
some |
goofy |
tex^t |
- {3:~ }|
- {3:~ }|
- {3:~ }|
- {3:~ }|
+ {3:~ }|*4
|
]]}
end)
@@ -730,8 +583,7 @@ it('winbar works properly when redrawing is postponed #23534', function()
screen:expect([[
{1:(winbar) }|
^ |
- {0:~ }|
- {0:~ }|
+ {0:~ }|*2
{2:(statusline) }|
|
]])
diff --git a/test/functional/vimscript/api_functions_spec.lua b/test/functional/vimscript/api_functions_spec.lua
index 0a7e7c1137..66136de1d1 100644
--- a/test/functional/vimscript/api_functions_spec.lua
+++ b/test/functional/vimscript/api_functions_spec.lua
@@ -182,10 +182,7 @@ describe('eval-API', function()
{1:call} {2:bufnr}{3:(}{4:'%'}{3:)} |
{1:call} {2:nvim_input}{3:(}{4:'typing...'}{3:)} |
{1:call} not_a_function{3:(}{4:42}{3:^)} |
- {5:~ }|
- {5:~ }|
- {5:~ }|
- {5:~ }|
+ {5:~ }|*4
|
]])
end)
diff --git a/test/functional/vimscript/execute_spec.lua b/test/functional/vimscript/execute_spec.lua
index bb28938708..de5c32fb6c 100644
--- a/test/functional/vimscript/execute_spec.lua
+++ b/test/functional/vimscript/execute_spec.lua
@@ -114,8 +114,7 @@ describe('execute()', function()
feed(':echo execute("hi ErrorMsg")<CR>')
screen:expect([[
|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{2: }|
|
ErrorMsg xxx ctermfg=15 ctermbg=1 guifg=White guibg=Red |
@@ -187,30 +186,21 @@ describe('execute()', function()
feed([[:call Test1()<cr>]])
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
ABCD |
]])
feed([[:call Test2()<cr>]])
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
1234ABCD |
]])
feed([[:call Test3()<cr>]])
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
1234ABCDXZYZ |
]])
@@ -231,10 +221,7 @@ describe('execute()', function()
feed([[:call Test5()<cr>]])
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*4
1234ABCD |
]])
@@ -273,9 +260,7 @@ describe('execute()', function()
command('let g:mes = execute("echon 42", "")')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
42 |
]])
eq('42', eval('g:mes'))
@@ -295,9 +280,7 @@ describe('execute()', function()
command('let g:mes = execute("echon 42")')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]])
eq('42', eval('g:mes'))
@@ -305,9 +288,7 @@ describe('execute()', function()
command('let g:mes = execute("echon 13", "silent")')
screen:expect{grid=[[
^ |
- ~ |
- ~ |
- ~ |
+ ~ |*3
|
]], unchanged=true}
eq('13', eval('g:mes'))
diff --git a/test/functional/vimscript/input_spec.lua b/test/functional/vimscript/input_spec.lua
index e1179d29cc..b8ac99437d 100644
--- a/test/functional/vimscript/input_spec.lua
+++ b/test/functional/vimscript/input_spec.lua
@@ -89,9 +89,7 @@ describe('input()', function()
command('redraw!')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo}^ |
]])
end)
@@ -100,17 +98,13 @@ describe('input()', function()
feed([[:call input(1, 2)<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}2^ |
]])
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}^ |
]])
end)
@@ -120,25 +114,19 @@ describe('input()', function()
feed([[:echo input(opts)<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}2^ |
]])
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}^ |
]])
feed('<Esc>')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:3} |
]])
end)
@@ -148,33 +136,25 @@ describe('input()', function()
feed([[:echo inputdialog(opts)<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Bar^ |
]])
command('mode')
screen:expect{grid=[[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Bar^ |
]], reset=true}
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Ba^ |
]])
command('mode')
screen:expect{grid=[[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Ba^ |
]], reset=true}
end)
@@ -183,9 +163,7 @@ describe('input()', function()
feed([[:call input({})<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
^ |
]])
end)
@@ -245,9 +223,7 @@ describe('input()', function()
feed('(())')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{RBP1:(}{RBP2:()}{RBP1:)}^ |
]])
end)
@@ -294,9 +270,7 @@ describe('inputdialog()', function()
command('redraw!')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo}^ |
]])
end)
@@ -305,17 +279,13 @@ describe('inputdialog()', function()
feed([[:call inputdialog(1, 2)<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}2^ |
]])
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}^ |
]])
end)
@@ -325,25 +295,19 @@ describe('inputdialog()', function()
feed([[:echo input(opts)<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}2^ |
]])
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:1}^ |
]])
feed('<Esc>')
screen:expect([[
^ |
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:3} |
]])
end)
@@ -353,33 +317,25 @@ describe('inputdialog()', function()
feed([[:echo input(opts)<CR>]])
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Bar^ |
]])
command('mode')
screen:expect{grid=[[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Bar^ |
]], reset=true}
feed('<BS>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Ba^ |
]])
command('mode')
screen:expect{grid=[[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{T:Foo>}Ba^ |
]], reset=true}
end)
@@ -388,9 +344,7 @@ describe('inputdialog()', function()
feed(':echo inputdialog({})<CR>')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
^ |
]])
end)
@@ -441,9 +395,7 @@ describe('inputdialog()', function()
feed('(())')
screen:expect([[
|
- {EOB:~ }|
- {EOB:~ }|
- {EOB:~ }|
+ {EOB:~ }|*3
{RBP1:(}{RBP2:()}{RBP1:)}^ |
]])
end)
diff --git a/test/functional/vimscript/match_functions_spec.lua b/test/functional/vimscript/match_functions_spec.lua
index 9f168c913a..3f3205ba81 100644
--- a/test/functional/vimscript/match_functions_spec.lua
+++ b/test/functional/vimscript/match_functions_spec.lua
@@ -148,9 +148,7 @@ describe('matchaddpos()', function()
}}, funcs.getmatches())
screen:expect([[
^a{1:b}cdef |
- {2:~ }|
- {2:~ }|
- {2:~ }|
+ {2:~ }|*3
|
]], {[1] = {foreground = Screen.colors.Red}, [2] = {bold = true, foreground = Screen.colors.Blue1}})
end)
diff --git a/test/functional/vimscript/system_spec.lua b/test/functional/vimscript/system_spec.lua
index 90aab48d61..272f81d775 100644
--- a/test/functional/vimscript/system_spec.lua
+++ b/test/functional/vimscript/system_spec.lua
@@ -193,18 +193,7 @@ describe('system()', function()
feed(':call system("echo")<cr>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
:call system("echo") |
]])
end)
@@ -250,18 +239,7 @@ describe('system()', function()
or 'yes') .. '")<cr>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
]] .. (is_os('win')
and [[
:call system("for /L %I in (1,0,2) do @echo y") |]]
@@ -270,18 +248,7 @@ describe('system()', function()
feed('foo<c-c>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
Type :qa and press <Enter> to exit Nvim |
]])
end)
@@ -293,18 +260,7 @@ describe('system()', function()
or 'yes') .. '")<cr>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
]] .. (is_os('win')
and [[
:call system("for /L %I in (1,0,2) do @echo y") |]]
@@ -313,18 +269,7 @@ describe('system()', function()
feed('foo<c-c>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
-- INSERT -- |
]])
end)
@@ -477,18 +422,7 @@ describe('systemlist()', function()
feed(':call systemlist("echo")<cr>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
:call systemlist("echo") |
]])
end)
@@ -497,35 +431,13 @@ describe('systemlist()', function()
feed(':call systemlist("yes | xargs")<cr>')
screen:expect([[
|
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
:call systemlist("yes | xargs") |
]])
feed('<c-c>')
screen:expect([[
^ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
- ~ |
+ ~ |*12
Type :qa and press <Enter> to exit Nvim |
]])
end)
diff --git a/test/functional/vimscript/timer_spec.lua b/test/functional/vimscript/timer_spec.lua
index a58cd6ae7f..93d88f6338 100644
--- a/test/functional/vimscript/timer_spec.lua
+++ b/test/functional/vimscript/timer_spec.lua
@@ -133,9 +133,7 @@ describe('timers', function()
screen:expect([[
^ITEM 1 |
ITEM 2 |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
nvim_async("command", "let g:cont = 1")
@@ -144,8 +142,7 @@ describe('timers', function()
^ITEM 1 |
ITEM 2 |
ITEM 3 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]])
@@ -155,8 +152,7 @@ describe('timers', function()
^ITEM 1 |
ITEM 2 |
ITEM 3 |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
|
]], unchanged=true}
end)
@@ -244,10 +240,7 @@ describe('timers', function()
feed(":good")
screen:expect([[
|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*4
:good^ |
]])
command('let g:val = 1')