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)
diff --git a/src/job.c b/src/job.c
index 6ee9f44..7329851 100644
--- a/src/job.c
+++ b/src/job.c
@@ -1260,7 +1260,7 @@
if (channel_need_redraw)
{
channel_need_redraw = FALSE;
- redraw_after_callback(TRUE);
+ redraw_after_callback(TRUE, FALSE);
}
return did_end;
}