+37
-8
lines changedFilter options
+37
-8
lines changed Original file line number Diff line number Diff line change
@@ -110,6 +110,7 @@ static char uilog_last_event[1024] = { 0 };
110
110
void ui_init(void)
111
111
{
112
112
default_grid.handle = 1;
113
+
msg_grid_adj.target = &default_grid;
113
114
ui_comp_init();
114
115
}
115
116
Original file line number Diff line number Diff line change
@@ -24,10 +24,6 @@ describe('screen', function()
24
24
} )
25
25
end)
26
26
27
-
after_each(function()
28
-
screen:detach()
29
-
end)
30
-
31
27
it('default initial screen', function()
32
28
screen:expect([[
33
29
^ |
@@ -67,10 +63,6 @@ local function screen_tests(linegrid)
67
63
} )
68
64
end)
69
65
70
-
after_each(function()
71
-
screen:detach()
72
-
end)
73
-
74
66
describe(':suspend', function()
75
67
it('is forwarded to the UI', function()
76
68
local function check()
@@ -1004,3 +996,39 @@ describe('Screen default colors', function()
1004
996
end}
1005
997
end)
1006
998
end)
999
+
1000
+
1001
+
describe('screen with msgsep deactivated on startup', function()
1002
+
local screen
1003
+
1004
+
before_each(function()
1005
+
clear('--cmd', 'set display-=msgsep')
1006
+
screen = Screen.new()
1007
+
screen:attach()
1008
+
screen:set_default_attr_ids {
1009
+
[0] = {bold=true, foreground=255};
1010
+
[7] = {bold = true, foreground = Screen.colors.SeaGreen};
1011
+
}
1012
+
end)
1013
+
1014
+
it('execute command with multi-line output', function()
1015
+
feed ':ls<cr>'
1016
+
screen:expect([[
1017
+
{0:~ }|
1018
+
{0:~ }|
1019
+
{0:~ }|
1020
+
{0:~ }|
1021
+
{0:~ }|
1022
+
{0:~ }|
1023
+
{0:~ }|
1024
+
{0:~ }|
1025
+
{0:~ }|
1026
+
{0:~ }|
1027
+
{0:~ }|
1028
+
:ls |
1029
+
1 %a "[No Name]" line 1 |
1030
+
{7:Press ENTER or type command to continue}^ |
1031
+
]])
1032
+
feed '<cr>' -- skip the "Press ENTER..." state or tests will hang
1033
+
end)
1034
+
end)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4