mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
screen: setup scrolling main screen when starting with display-=msgsep
This commit is contained in:
@@ -110,6 +110,7 @@ static char uilog_last_event[1024] = { 0 };
|
|||||||
void ui_init(void)
|
void ui_init(void)
|
||||||
{
|
{
|
||||||
default_grid.handle = 1;
|
default_grid.handle = 1;
|
||||||
|
msg_grid_adj.target = &default_grid;
|
||||||
ui_comp_init();
|
ui_comp_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,10 +24,6 @@ describe('screen', function()
|
|||||||
} )
|
} )
|
||||||
end)
|
end)
|
||||||
|
|
||||||
after_each(function()
|
|
||||||
screen:detach()
|
|
||||||
end)
|
|
||||||
|
|
||||||
it('default initial screen', function()
|
it('default initial screen', function()
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
^ |
|
^ |
|
||||||
@@ -67,10 +63,6 @@ local function screen_tests(linegrid)
|
|||||||
} )
|
} )
|
||||||
end)
|
end)
|
||||||
|
|
||||||
after_each(function()
|
|
||||||
screen:detach()
|
|
||||||
end)
|
|
||||||
|
|
||||||
describe(':suspend', function()
|
describe(':suspend', function()
|
||||||
it('is forwarded to the UI', function()
|
it('is forwarded to the UI', function()
|
||||||
local function check()
|
local function check()
|
||||||
@@ -1004,3 +996,39 @@ describe('Screen default colors', function()
|
|||||||
end}
|
end}
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
describe('screen with msgsep deactivated on startup', function()
|
||||||
|
local screen
|
||||||
|
|
||||||
|
before_each(function()
|
||||||
|
clear('--cmd', 'set display-=msgsep')
|
||||||
|
screen = Screen.new()
|
||||||
|
screen:attach()
|
||||||
|
screen:set_default_attr_ids {
|
||||||
|
[0] = {bold=true, foreground=255};
|
||||||
|
[7] = {bold = true, foreground = Screen.colors.SeaGreen};
|
||||||
|
}
|
||||||
|
end)
|
||||||
|
|
||||||
|
it('execute command with multi-line output', function()
|
||||||
|
feed ':ls<cr>'
|
||||||
|
screen:expect([[
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
{0:~ }|
|
||||||
|
:ls |
|
||||||
|
1 %a "[No Name]" line 1 |
|
||||||
|
{7:Press ENTER or type command to continue}^ |
|
||||||
|
]])
|
||||||
|
feed '<cr>' -- skip the "Press ENTER..." state or tests will hang
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
Reference in New Issue
Block a user