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/popupwin.c b/src/popupwin.c
index 7641827..266e113 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3357,7 +3357,7 @@
// Reset got_int to avoid a function used in the statusline aborts.
got_int = FALSE;
- redraw_after_callback(FALSE);
+ redraw_after_callback(FALSE, FALSE);
got_int |= save_got_int;
}
recursive = FALSE;