aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2023-12-01 22:08:31 -0600
committerLibravatar bigfoot547 <[email protected]>2023-12-01 22:08:31 -0600
commit913e3fb6422dac9a1a7d5ce4cd02b4afaac31758 (patch)
tree718ecab889a3017d10e97a183311fa516368b134 /src/ui
parentadd some scrolling code and debug stuf (diff)
readme
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/root.c4
1 files changed, 3 insertions, 1 deletions
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);