+59
-7
lines changedFilter options
+59
-7
lines changed Original file line number Diff line number Diff line change
@@ -11,6 +11,15 @@ describe('cmdline', function()
11
11
it('is cleared when switching tabs', function()
12
12
local screen = Screen.new(30, 10)
13
13
screen:attach()
14
+
screen:set_default_attr_ids {
15
+
[1] = {underline = true, background = Screen.colors.LightGrey};
16
+
[2] = {bold = true};
17
+
[3] = {reverse = true};
18
+
[4] = {bold = true, foreground = Screen.colors.Blue1};
19
+
}
20
+
-- TODO(bfredl): redraw with tabs is severly broken. fix it
21
+
feed_command [[ set display-=msgsep ]]
22
+
14
23
feed_command([[call setline(1, range(30))]])
15
24
screen:expect([[
16
25
^0 |
@@ -24,15 +33,58 @@ describe('cmdline', function()
24
33
8 |
25
34
:call setline(1, range(30)) |
26
35
]])
27
-
feed([[:tabnew<cr><C-w>-<C-w>-gtgt]])
36
+
37
+
feed [[:tabnew<cr>]]
38
+
screen:expect{grid=[[
39
+
{1: + [No Name] }{2: [No Name] }{3: }{1:X}|
40
+
^ |
41
+
{4:~ }|
42
+
{4:~ }|
43
+
{4:~ }|
44
+
{4:~ }|
45
+
{4:~ }|
46
+
{4:~ }|
47
+
{4:~ }|
48
+
:tabnew |
49
+
]]}
50
+
51
+
feed [[<C-w>-<C-w>-]]
52
+
screen:expect{grid=[[
53
+
{1: + [No Name] }{2: [No Name] }{3: }{1:X}|
54
+
^ |
55
+
{4:~ }|
56
+
{4:~ }|
57
+
{4:~ }|
58
+
{4:~ }|
59
+
{4:~ }|
60
+
|
61
+
|
62
+
:tabnew |
63
+
]]}
64
+
65
+
feed [[gt]]
66
+
screen:expect{grid=[[
67
+
{2: + [No Name] }{1: [No Name] }{3: }{1:X}|
68
+
^0 |
69
+
1 |
70
+
2 |
71
+
3 |
72
+
4 |
73
+
5 |
74
+
6 |
75
+
7 |
76
+
|
77
+
]]}
78
+
79
+
feed [[gt]]
28
80
screen:expect([[
29
-
+ [No Name] [No Name] X|
81
+
{1: + [No Name] }{2: [No Name] }{3: }{1:X}|
30
82
^ |
31
-
~ |
32
-
~ |
33
-
~ |
34
-
~ |
35
-
~ |
83
+
{4:~ }|
84
+
{4:~ }|
85
+
{4:~ }|
86
+
{4:~ }|
87
+
{4:~ }|
36
88
|
37
89
|
38
90
|
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