diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-03-21 01:06:07 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-03-21 01:06:07 +0000 |
| commit | ee02f1d69714759b1f58f48717f72075cbd8277c (patch) | |
| tree | 0ecec61a76aad412c6a75e3018515a91634534d8 /gnu/lib | |
| parent | 2943bd1c539a44ed105488b0718e1681b8b3035a (diff) | |
Notes
Diffstat (limited to 'gnu/lib')
| -rw-r--r-- | gnu/lib/libdialog/menubox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c index ef1eb70053c5..15324b4c0bd8 100644 --- a/gnu/lib/libdialog/menubox.c +++ b/gnu/lib/libdialog/menubox.c @@ -129,7 +129,7 @@ int dialog_menu(unsigned char *title, unsigned char *prompt, int height, int wid /* Print the menu */ for (i = 0; i < max_choice; i++) - print_item(menu, items[i*2], items[i*2 + 1], i, i == choice); + print_item(menu, items[(scroll+i)*2], items[(scroll+i)*2 + 1], i, i == choice); wnoutrefresh(menu); print_arrows(dialog, scroll, menu_height, item_no, box_x, box_y, tag_x, cur_x, cur_y); |
