From 44b64f37f021671fe1771c0bc034297a677d3d79 Mon Sep 17 00:00:00 2001 From: denes Date: Fri, 5 Jul 2019 14:52:51 +0200 Subject: [PATCH] proper set_menu_format retval check --- graph_browser.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/graph_browser.cpp b/graph_browser.cpp index 36cb846..c47da0b 100644 --- a/graph_browser.cpp +++ b/graph_browser.cpp @@ -113,9 +113,7 @@ void GraphBrowser::initLayout() menu_subwindow_ = derwin(current_win_, window_height-2, current_window_width-2, 1, 1); assert(menu_subwindow_); r = set_menu_sub(menu_, menu_subwindow_); - assert(r == E_OK); - r = set_menu_format(menu_, window_height-2, 1); - assert(r == E_OK); // @bug NOT connected + assert(r == E_NOT_CONNECTED); // No items are connected to the menu. r = set_menu_mark(menu_, " "); assert(r == E_OK); @@ -152,9 +150,8 @@ void GraphBrowser::initLayout() r = wrefresh(n_of_n_win_); assert(r == OK); - // bottom text - /// @note should we assert as a minimum width? - mvprintw(term_max_y_-1, 0, "ESC:exit, cursors:navigate, d/i:del/ins edge, D/I:del/ins node"); + r = mvprintw(term_max_y_-1, 0, "ESC:exit, cursors:navigate, d/i:del/ins edge, D/I:del/ins node"); + assert(r == OK); r = refresh(); assert(r == OK); }