From 5ceb99684122fd0d22a18f9ce6b941d7fecf8bcc Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 30 Jun 2006 02:18:50 -0700 Subject: [PATCH] --- yaml --- r: 31591 b: refs/heads/master c: 66392c4f2246641c13b5dc60d15b09a71e09276f h: refs/heads/master i: 31589: b145c30973375f079cd518553b525811ce08122b 31587: e143fd0fd5a9cc6e7b2129d9687b4406d4dc9732 31583: ac4661ebd73d5da3a1997f55d6a0b46761bfc991 v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/lxdialog/checklist.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 1ec04aacde0a..cad6ba2eea77 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5e8d780d745c1619aba81fe7166c5a4b5cad2b84 +refs/heads/master: 66392c4f2246641c13b5dc60d15b09a71e09276f diff --git a/trunk/scripts/kconfig/lxdialog/checklist.c b/trunk/scripts/kconfig/lxdialog/checklist.c index be0200e9cdaf..79886413b6d5 100644 --- a/trunk/scripts/kconfig/lxdialog/checklist.c +++ b/trunk/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_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);