aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lxdialog/yesno.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lxdialog/yesno.c')
-rw-r--r--scripts/lxdialog/yesno.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lxdialog/yesno.c b/scripts/lxdialog/yesno.c
index dffd5af3671376..84f3e8e005e41e 100644
--- a/scripts/lxdialog/yesno.c
+++ b/scripts/lxdialog/yesno.c
@@ -96,8 +96,7 @@ int dialog_yesno(const char *title, const char *prompt, int height, int width)
case TAB:
case KEY_LEFT:
case KEY_RIGHT:
- button = ((key == KEY_LEFT ? --button : ++button) < 0)
- ? 1 : (button > 1 ? 0 : button);
+ button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button);
print_buttons(dialog, height, width, button);
wrefresh(dialog);