[RFC PATCH 6/8] ui/ncurses: Don't post screen after command

Samuel Mendoza-Jonas sam at mendozajonas.com
Tue Dec 18 15:19:51 AEDT 2018


Leave the post command to the calling screen so widgets can be properly
reinitialised if needed.

Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
---
 ui/ncurses/nc-cui.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index d80e2c3e..9fe4ba5c 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -262,7 +262,6 @@ int cui_run_cmd(struct cui *cui, const char **cmd_argv)
 	refresh();
 
 	redrawwin(cui->current->main_ncw);
-	nc_scr_post(cui->current);
 
 	if (result) {
 		pb_log_fn("failed: '%s'\n", cmd_argv[0]);
-- 
2.20.0



More information about the Petitboot mailing list