From: "John Rigby" <jcrigby@gmail.com>
To: "Roman Zippel" <zippel@linux-m68k.org>
Cc: "Sam Ravnborg" <sam@ravnborg.org>, lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] Allow menuconfig to cycle through choices
Date: Thu, 6 Apr 2006 14:58:34 -0600 [thread overview]
Message-ID: <4b73d43f0604061358v1c619e21rc6f3af2cdc4545a3@mail.gmail.com> (raw)
In-Reply-To: <4b73d43f0604061339n35a4d98ha08bf8d7fc0bef0b@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: 0001-Allow-menuconfig-to-cycle-through-choices.txt --]
[-- Type: text/plain, Size: 1205 bytes --]
>From nobody Mon Sep 17 00:00:00 2001
From: John Rigby <jrigby@freescale.com>
Date: Thu Apr 6 14:25:19 2006 -0600
Subject: [PATCH] Allow menuconfig to cycle through choices
Added cycling logic to dialog_checklist identical to what
dialog_menu already has.
Signed-off-by: John Rigby <jrigby@freescale.com>
---
scripts/kconfig/lxdialog/checklist.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
8c5500ea727987ea35a7ccaa463dcaf50eb731b2
diff --git a/scripts/kconfig/lxdialog/checklist.c b/scripts/kconfig/lxdialog/checklist.c
index db07ae7..af41cb1 100644
--- a/scripts/kconfig/lxdialog/checklist.c
+++ b/scripts/kconfig/lxdialog/checklist.c
@@ -203,10 +203,15 @@ int dialog_checklist(const char *title,
while (key != ESC) {
key = wgetch(dialog);
- for (i = 0; i < max_choice; i++)
+ for (i = choice + 1; i < max_choice; i++)
if (toupper(key) ==
toupper(items[(scroll + i) * 3 + 1][0]))
break;
+ if (i == max_choice)
+ for (i = 0; i < max_choice; i++)
+ if (toupper(key) ==
+ toupper(items[(scroll + i) * 3 + 1][0]))
+ break;
if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
key == '+' || key == '-') {
--
1.2.4
next parent reply other threads:[~2006-04-06 20:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4b73d43f0604061338i1c5315f1t34761380b620fc57@mail.gmail.com>
[not found] ` <4b73d43f0604061339n35a4d98ha08bf8d7fc0bef0b@mail.gmail.com>
2006-04-06 20:58 ` John Rigby [this message]
2006-04-06 22:40 ` Randy.Dunlap
2006-04-06 23:04 ` Randy.Dunlap
[not found] ` <4b73d43f0604061754j7a6e5dccu1d9af4b3167e9758@mail.gmail.com>
2006-04-07 20:47 ` Roman Zippel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4b73d43f0604061358v1c619e21rc6f3af2cdc4545a3@mail.gmail.com \
--to=jcrigby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®