Skip to content

Commit

Permalink
Ensure we scroll to selected panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Feb 20, 2016
1 parent ed433e6 commit 77b2023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/goaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ set_module_to (GScroll * scrll, GModule module)
return;
}

/* scroll to panel */
if (!conf.no_tab_scroll)
gscroll.dash = get_module_index (module) * DASH_COLLAPSED;

/* reset expanded module */
collapse_current_module ();
scrll->current = module;
Expand Down

0 comments on commit 77b2023

Please sign in to comment.