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/sound.c b/src/sound.c
index e704aed..2f121eb 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -173,7 +173,7 @@
delete_sound_callback(scb->scb_callback);
vim_free(scb);
}
- redraw_after_callback(TRUE);
+ redraw_after_callback(TRUE, FALSE);
}
static void
@@ -327,7 +327,7 @@
clear_tv(&rettv);
delete_sound_callback(p);
- redraw_after_callback(TRUE);
+ redraw_after_callback(TRUE, FALSE);
}
break;