summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2021-03-27 17:40:03 -0700
committerlshprung <lshprung@yahoo.com>2021-03-27 17:40:03 -0700
commit3f00d36f96adfa432e8b64f739749fd56d29338e (patch)
treedd95dbf85e0abd55e2534b98cc65e74b5f1b0dcf
parentf4c414838a72ee81f11feab8b4086772bc4afaeb (diff)
Fixed caching bug
-rw-r--r--draw.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/draw.c b/draw.c
index 3f261b5..3512c86 100644
--- a/draw.c
+++ b/draw.c
@@ -101,6 +101,7 @@ int main(int argc, char **argv){
prev_width = WIDTH;
prev_height = HEIGHT;
+ //update to show menu
update_display(false);
//update highlighting for loaded location
@@ -209,9 +210,11 @@ void update_display(bool resize){
draw_win(info_win, "INFO");
update_col(0, 1, resize);
- //start with hover on the first group, draw the entries from the selected group, true_hover is over the groups (rather than the entries)
- update_col(1, 1, resize);
- update_col(2, 0, resize);
+ //start with hover on the first group, draw the entries from the selected group, true_hover is over the groups (rather than the entries) (do update after first draw, only after subsequent (resize) updates)
+ if(resize){
+ update_col(1, 1, resize);
+ update_col(2, 0, resize);
+ }
curs_set(0); //hide the cursor
//move(3, (WIDTH/4)+10);
refresh();