]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-boot-editor.c
ui/ncurses: Ensure boot editor window is properly painted
[petitboot] / ui / ncurses / nc-boot-editor.c
index bd2bf6e6abe9898779b9a1c364191957534b4874..86fba4d8d2da3ef62957e15fc8c017e5d4f1fa45 100644 (file)
@@ -513,6 +513,7 @@ struct boot_editor *boot_editor_init(struct cui *cui,
        boot_editor->scr.frame.rtitle = NULL;
        boot_editor->scr.frame.help = talloc_strdup(boot_editor,
                        "Enter=accept");
+       nc_scr_frame_draw(&boot_editor->scr);
 
        if (item) {
                struct pb_boot_data *bd = cod_from_item(item)->bd;
@@ -533,6 +534,7 @@ struct boot_editor *boot_editor_init(struct cui *cui,
        boot_editor_setup_widgets(boot_editor, sysinfo);
 
        boot_editor_layout_widgets(boot_editor);
+       wrefresh(boot_editor->scr.main_ncw);
 
        return boot_editor;
 }