mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 22:59:36 +00:00
feat(messages)!: graduate the 'msgsep' feature
The old behaviour (e.g. via `set display-=msgsep`) will not be available. Assuming that messages always are being drawn on msg_grid (or not drawn at all, and forwarded to `ext_messages` enabled UI) will allows some simplifcations and enhancements moving forward.
This commit is contained in:
@@ -682,30 +682,7 @@ local function screen_tests(linegrid)
|
||||
]])
|
||||
end)
|
||||
|
||||
it('execute command with multi-line output without msgsep', function()
|
||||
command("set display-=msgsep")
|
||||
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)
|
||||
|
||||
it('execute command with multi-line output and with msgsep', function()
|
||||
command("set display+=msgsep")
|
||||
it('execute command with multi-line output', function()
|
||||
feed(':ls<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
@@ -1050,39 +1027,3 @@ describe('Screen default colors', function()
|
||||
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