summaryrefslogtreecommitdiff
path: root/client/ui.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-07 10:58:30 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-07 10:58:30 +0200
commitb81f15e6542d124ef22347e1b793894494695b3d (patch)
tree4c91a2ec5c51547a205d597d934c3c12bf4bd622 /client/ui.c
parent0b246d96f4928755b50a005dd954f051c717ed02 (diff)
`make format`
Diffstat (limited to 'client/ui.c')
-rw-r--r--client/ui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/ui.c b/client/ui.c
index 5f649e0..9e6837a 100644
--- a/client/ui.c
+++ b/client/ui.c
@@ -39,8 +39,10 @@ void w2_ui_key_handler() {
void (*current_mode_key_handler)() = g_w2_keyhndl_ptrs[g_w2_ui_current_tab];
return;
while ((ch = getch()) != -1) {
- if (ch == '\t') w2_ui_switch_tab(g_w2_ui_current_tab + 1);
- else if (current_mode_key_handler != NULL) (*current_mode_key_handler)(ch);
+ if (ch == '\t')
+ w2_ui_switch_tab(g_w2_ui_current_tab + 1);
+ else if (current_mode_key_handler != NULL)
+ (*current_mode_key_handler)(ch);
}
}