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:
parent
2e2c0a590e
commit
d12226d4cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user