mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
Problem: When editing the command line a FocusLost callback may cause the
screen to scroll up.
Solution: Do not redraw at the last line but at the same place where the
command line was before. (closes #9295)
This commit is contained in:
@@ -3205,7 +3205,7 @@ channel_close(channel_T *channel, int invoke_close_cb)
|
||||
if (channel_need_redraw)
|
||||
{
|
||||
channel_need_redraw = FALSE;
|
||||
redraw_after_callback(TRUE);
|
||||
redraw_after_callback(TRUE, FALSE);
|
||||
}
|
||||
|
||||
if (!channel->ch_drop_never)
|
||||
@@ -4687,7 +4687,7 @@ channel_parse_messages(void)
|
||||
if (channel_need_redraw)
|
||||
{
|
||||
channel_need_redraw = FALSE;
|
||||
redraw_after_callback(TRUE);
|
||||
redraw_after_callback(TRUE, FALSE);
|
||||
}
|
||||
|
||||
--safe_to_invoke_callback;
|
||||
|
||||
Reference in New Issue
Block a user