fix(ui): stop status bar / chat bleed-through over the external editor #131
@@ -325,6 +325,10 @@ inp_get_line(void)
|
|||||||
while (!line) {
|
while (!line) {
|
||||||
line = inp_readline();
|
line = inp_readline();
|
||||||
ui_update();
|
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();
|
status_bar_clear_prompt();
|
||||||
return line;
|
return line;
|
||||||
@@ -356,6 +360,10 @@ inp_get_password(void)
|
|||||||
while (!password) {
|
while (!password) {
|
||||||
password = inp_readline();
|
password = inp_readline();
|
||||||
ui_update();
|
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;
|
get_password = FALSE;
|
||||||
status_bar_clear_prompt();
|
status_bar_clear_prompt();
|
||||||
|
|||||||
Reference in New Issue
Block a user