From 913e3fb6422dac9a1a7d5ce4cd02b4afaac31758 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Fri, 1 Dec 2023 22:08:31 -0600 Subject: readme --- src/ui/root.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/root.c') diff --git a/src/ui/root.c b/src/ui/root.c index fd82ea6..eeeb1b9 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -151,8 +151,10 @@ void ui__root_draw_menu(struct ui_window_root *root) text = ui__root_get_menu_text(item); size_t tlen = strlen(text); - if (item == root->menu_selected) + if (item == root->menu_selected) { wattroff(root->menu_cwindow, A_REVERSE); + /* the coordinates of the selected menu item are here, place the window :) */ + } ui__root_scroll_text(root, cursor, text, tlen); -- cgit v1.2.3-70-g09d2