summaryrefslogtreecommitdiff
path: root/pinentry-dmenu.c
diff options
context:
space:
mode:
authorMoritz Luedecke <ritze@skweez.net>2017-09-11 09:29:03 +0200
committerMoritz Luedecke <ritze@skweez.net>2017-09-11 09:29:03 +0200
commit84a7f88da195e4859839638a3eaba68a64cf732d (patch)
treea80d61e2336f673ff3f4f11e6024c4ac576da1d2 /pinentry-dmenu.c
parentf4c911ee19ef99f1f86c30f29c240604b18b2c4c (diff)
Fix indentation
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r--pinentry-dmenu.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index 9004a3e..8538878 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -373,31 +373,31 @@ keypress_confirm(XKeyEvent *ev, KeySym ksym) {
}
switch(ksym) {
- case XK_KP_Enter:
- case XK_Return:
- if (sel != Nothing) {
- return 1;
- }
- break;
- case XK_y:
- case XK_Y:
- sel = Yes;
- return 1;
- case XK_n:
- case XK_N:
- sel = No;
- return 1;
- case XK_Escape:
- pinentry->canceled = 1;
- sel = No;
+ case XK_KP_Enter:
+ case XK_Return:
+ if (sel != Nothing) {
return 1;
- case XK_Left:
- sel = No;
- break;
- case XK_Right:
- sel = Yes;
- break;
}
+ break;
+ case XK_y:
+ case XK_Y:
+ sel = Yes;
+ return 1;
+ case XK_n:
+ case XK_N:
+ sel = No;
+ return 1;
+ case XK_Escape:
+ pinentry->canceled = 1;
+ sel = No;
+ return 1;
+ case XK_Left:
+ sel = No;
+ break;
+ case XK_Right:
+ sel = Yes;
+ break;
+ }
return 0;
}