mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
fix(messages): reset msg_grid_scroll_discount when redrawing (#21000)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user