fix(ui): stop status bar / chat bleed-through over the external editor #131

Closed
jabber.developer2 wants to merge 11 commits from fix/editor-ui-suspend-redraw into master
7 changed files with 76 additions and 15 deletions
Showing only changes of commit b1ffc750a2 - Show all commits

View File

@@ -325,6 +325,10 @@ inp_get_line(void)
while (!line) {
line = inp_readline();
ui_update();
// Let GLib sources (notably the editor child watch) dispatch so
// ui_resume can run if the prompt was raised mid-editor-session.
while (g_main_context_iteration(NULL, FALSE))
;
}
status_bar_clear_prompt();
return line;
@@ -356,6 +360,10 @@ inp_get_password(void)
while (!password) {
password = inp_readline();
ui_update();
// Let GLib sources (notably the editor child watch) dispatch so
// ui_resume can run if the prompt was raised mid-editor-session.
while (g_main_context_iteration(NULL, FALSE))
;
}
get_password = FALSE;
status_bar_clear_prompt();