diff options
author | Matthew Bystrin <dev.mbstr@gmail.com> | 2024-02-16 15:10:14 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-20 15:06:38 +0100 |
commit | ba3b759fb688c09cd9b09852d2728b012cf040ba (patch) | |
tree | 4aaba1ec8f2f44a7e0e2fe877dc6e09824235c9e /scripts/kconfig | |
parent | kbuild: remove EXPERT and !COMPILE_TEST guarding from TRIM_UNUSED_KSYMS (diff) | |
download | linux-ba3b759fb688c09cd9b09852d2728b012cf040ba.tar.xz linux-ba3b759fb688c09cd9b09852d2728b012cf040ba.zip |
kconfig: lxdialog: fix cursor render in checklist
When a checklist is opened, the cursor is rendered in a wrong position
(after the last list element on the screen). You can observe it by
opening any checklist in menuconfig.
Added wmove() to set the cursor in the proper position, just like in
menubox.c. Removed wnoutrefresh(dialog) because dialog window has
already been updated in print_buttons(). Replaced wnoutrefresh(list) and
doupdate() calls with one wrefresh(list) call.
Signed-off-by: Matthew Bystrin <dev.mbstr@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/lxdialog/checklist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/kconfig/lxdialog/checklist.c b/scripts/kconfig/lxdialog/checklist.c index fd161cfff121..31d0a89fbeb7 100644 --- a/scripts/kconfig/lxdialog/checklist.c +++ b/scripts/kconfig/lxdialog/checklist.c @@ -188,9 +188,8 @@ do_resize: print_buttons(dialog, height, width, 0); - wnoutrefresh(dialog); - wnoutrefresh(list); - doupdate(); + wmove(list, choice, check_x + 1); + wrefresh(list); while (key != KEY_ESC) { key = wgetch(dialog); |