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/terminal.c b/src/terminal.c
index c3ce116..7e2f45b 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -1258,7 +1258,7 @@
update_cursor(curbuf->b_term, TRUE);
}
else
- redraw_after_callback(TRUE);
+ redraw_after_callback(TRUE, FALSE);
}
}