1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix a problem with my rewrite of scroll_menu where selecting an item on

a main menu selects the next item instead.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-19 03:44:14 +00:00 committed by Miciah Dashiel Butler Masters
parent 2e2c0a590e
commit d12226d4cb

View File

@ -270,7 +270,7 @@ no_item:
start = pos = menu->selected;
if (!steps) steps = 1;
if (!steps) steps = 1, --pos;
while (steps) {
pos += s, steps -= s;