Merge pull request #25470 from bfredl/msg_display

refactor(message): simplify msg_puts_display and use batched grid updates
This commit is contained in:
bfredl
2023-10-03 20:56:43 +02:00
committed by GitHub
10 changed files with 152 additions and 255 deletions

View File

@@ -259,8 +259,8 @@ describe('fileio', function()
screen:expect([[
{2:WARNING: The file has been changed since}|
{2: reading it!!!} |
{3:Do you really want to write to it (y/n)^?}|
|
{3:Do you really want to write to it (y/n)?}|
^ |
]])
feed("n")

View File

@@ -22,7 +22,7 @@ describe('digraph', function()
{0:~ }|
{0:~ }|
{0:~ }|
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
feed('1')
screen:expect([[
@@ -31,7 +31,7 @@ describe('digraph', function()
{0:~ }|
{0:~ }|
{0:~ }|
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
feed('2')
screen:expect([[
@@ -40,7 +40,7 @@ describe('digraph', function()
{0:~ }|
{0:~ }|
{0:~ }|
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
end)
end)

View File

@@ -43,7 +43,7 @@ describe('edit', function()
{0:~ }|
{0:~ }|
{0:~ }|
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
feed('=')
screen:expect([[

View File

@@ -577,10 +577,10 @@ describe('Command-line coloring', function()
|
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
{MSEP: }|
:+ |
{ERR:E5404: Chunk 1 end 3 not in range (1, 2]}|
|
:++^ |
]])
end)

View File

@@ -2439,14 +2439,14 @@ describe('builtin popupmenu', function()
prefix |
bef{n: word } |
tex{n: }^ |
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
-- can't draw the pum, but check we don't crash
screen:try_resize(12,2)
screen:expect([[
{1:<<<}t^ |
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
-- but state is preserved, pum reappears

View File

@@ -795,7 +795,7 @@ local function screen_tests(linegrid)
screen:try_resize(1, 1)
screen:expect([[
resize^ |
{2:-- INSERT -} |
{2:-- INSERT --}|
]])
feed('<esc>:ls')