mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
Merge pull request #25470 from bfredl/msg_display
refactor(message): simplify msg_puts_display and use batched grid updates
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -43,7 +43,7 @@ describe('edit', function()
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{2:-- INSERT -} |
|
||||
{2:-- INSERT --}|
|
||||
]])
|
||||
feed('=')
|
||||
screen:expect([[
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -795,7 +795,7 @@ local function screen_tests(linegrid)
|
||||
screen:try_resize(1, 1)
|
||||
screen:expect([[
|
||||
resize^ |
|
||||
{2:-- INSERT -} |
|
||||
{2:-- INSERT --}|
|
||||
]])
|
||||
|
||||
feed('<esc>:ls')
|
||||
|
||||
Reference in New Issue
Block a user