commit | 917c38af204593ac27cbfec3a20e5ceaf789b19a | [log] [tgz] |
---|---|---|
author | Koushik Dutta <koushd@gmail.com> | Mon May 24 16:43:39 2010 -0700 |
committer | Koushik Dutta <koushd@gmail.com> | Mon May 24 16:43:39 2010 -0700 |
tree | 7020f4329c81b324621750ec627a2b0adab51971 | |
parent | 2c3cc503561763db289583072a54db3eb4eedffe [diff] [blame] |
adjust menu start position: zinx
diff --git a/ui.c b/ui.c index 5ea4e42..039043e 100644 --- a/ui.c +++ b/ui.c
@@ -527,11 +527,11 @@ if (menu_sel < menu_show_start && menu_show_start > 0) { - menu_show_start--; + menu_show_start = menu_sel; } if (menu_sel - menu_show_start + menu_top >= text_rows) { - menu_show_start++; + menu_show_start = menu_sel + menu_top - text_rows + 1; } sel = menu_sel;