fix(messages): reset msg_grid_scroll_discount when redrawing (#21000)

This commit is contained in:
zeertzjq
2022-11-10 06:16:54 +08:00
committed by GitHub
parent fae7540732
commit f2857dcd5a
4 changed files with 17 additions and 1 deletions

View File

@@ -10,9 +10,11 @@ local async_meths = helpers.async_meths
local test_build_dir = helpers.test_build_dir
local nvim_prog = helpers.nvim_prog
local iswin = helpers.iswin
local exec = helpers.exec
local exc_exec = helpers.exc_exec
local exec_lua = helpers.exec_lua
local poke_eventloop = helpers.poke_eventloop
local assert_alive = helpers.assert_alive
describe('ui/ext_messages', function()
local screen
@@ -1236,6 +1238,17 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
end)
end)
it('calling screenstring() after redrawing between messages without UI #20999', function()
clear()
exec([[
echo repeat('a', 100)
redraw
echo "\n"
call screenstring(1, 1)
]])
assert_alive()
end)
describe('ui/ext_messages', function()
local screen