aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/ui.c6
-rw-r--r--client/ui_dirc.c2
-rw-r--r--client/ui_errcatch.c4
-rw-r--r--client/ui_tabbar.c10
4 files changed, 11 insertions, 11 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);
}
}
diff --git a/client/ui_dirc.c b/client/ui_dirc.c
index 72e57d0..e2da863 100644
--- a/client/ui_dirc.c
+++ b/client/ui_dirc.c
@@ -1,8 +1,8 @@
#include "../shared/protocol.h"
#include "../shared/util.h"
#include "commands.h"
-#include "ui.h"
#include "errcatch.h"
+#include "ui.h"
unsigned int g_w2_lb = 0;
unsigned int g_w2_lf = 0;
diff --git a/client/ui_errcatch.c b/client/ui_errcatch.c
index 2d695aa..5c9cf34 100644
--- a/client/ui_errcatch.c
+++ b/client/ui_errcatch.c
@@ -35,9 +35,7 @@ char *w2_err_format(w2_s_error *error) {
return ret_str;
}
-void w2_ui_onkey_errcatch(int ch) {
-
-}
+void w2_ui_onkey_errcatch(int ch) {}
void w2_ui_tab_errcatch(bool first) {
g_w2_errcatch_log_line = 0;
diff --git a/client/ui_tabbar.c b/client/ui_tabbar.c
index f11d1a5..87e3f06 100644
--- a/client/ui_tabbar.c
+++ b/client/ui_tabbar.c
@@ -10,11 +10,11 @@ void (*g_w2_tab_ptrs[W2_UI_TAB_COUNT])(bool first);
void (*g_w2_keyhndl_ptrs[W2_UI_TAB_COUNT])(int key);
void w2_ui_tabbar_init() {
- g_w2_tab_ptrs[W2_UI_TAB_START] = &w2_ui_tab_start;
- g_w2_tab_ptrs[W2_UI_TAB_ERRCATCH] = &w2_ui_tab_errcatch;
- g_w2_keyhndl_ptrs[W2_UI_TAB_START] = &w2_ui_onkey_errcatch;
- g_w2_tab_ptrs[W2_UI_TAB_DIRC] = &w2_ui_tab_dirc;
- g_w2_keyhndl_ptrs[W2_UI_TAB_DIRC] = &w2_ui_onkey_dirc;
+ g_w2_tab_ptrs[W2_UI_TAB_START] = &w2_ui_tab_start;
+ g_w2_tab_ptrs[W2_UI_TAB_ERRCATCH] = &w2_ui_tab_errcatch;
+ g_w2_keyhndl_ptrs[W2_UI_TAB_START] = &w2_ui_onkey_errcatch;
+ g_w2_tab_ptrs[W2_UI_TAB_DIRC] = &w2_ui_tab_dirc;
+ g_w2_keyhndl_ptrs[W2_UI_TAB_DIRC] = &w2_ui_onkey_dirc;
}
void w2_ui_paint_tabbar() {