git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge to Fedora kernel-2.6.18-1.2224_FC5 patched with stable patch-2.6.18.1-vs2.0...
[linux-2.6.git]
/
scripts
/
kconfig
/
lxdialog
/
checklist.c
diff --git
a/scripts/kconfig/lxdialog/checklist.c
b/scripts/kconfig/lxdialog/checklist.c
index
be0200e
..
7988641
100644
(file)
--- a/
scripts/kconfig/lxdialog/checklist.c
+++ b/
scripts/kconfig/lxdialog/checklist.c
@@
-187,9
+187,12
@@
int dialog_checklist(const char *title, const char *prompt, int height,
/* Print the list */
for (i = 0; i < max_choice; i++) {
/* Print the list */
for (i = 0; i < max_choice; i++) {
- print_item(list, items[(scroll + i) * 3 + 1],
- status[i + scroll], i, i == choice);
+ if (i != choice)
+ print_item(list, items[(scroll + i) * 3 + 1],
+ status[i + scroll], i, 0);
}
}
+ print_item(list, items[(scroll + choice) * 3 + 1],
+ status[choice + scroll], choice, 1);
print_arrows(dialog, choice, item_no, scroll,
box_y, box_x + check_x + 5, list_height);
print_arrows(dialog, choice, item_no, scroll,
box_y, box_x + check_x + 5, list_height);