mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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;
|
start = pos = menu->selected;
|
||||||
|
|
||||||
if (!steps) steps = 1;
|
if (!steps) steps = 1, --pos;
|
||||||
|
|
||||||
while (steps) {
|
while (steps) {
|
||||||
pos += s, steps -= s;
|
pos += s, steps -= s;
|
||||||
|
Loading…
Reference in New Issue
Block a user