From 3804233c21f73a7e85c82f6e2e97dd278f62f23b Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Fri, 6 Dec 2013 22:07:37 -0500 Subject: [PATCH] didnt mean to change that --- src/toxic_windows.h | 4 ++-- src/windows.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/toxic_windows.h b/src/toxic_windows.h index bc1bc2d..17699cd 100644 --- a/src/toxic_windows.h +++ b/src/toxic_windows.h @@ -32,8 +32,8 @@ /* ASCII key codes */ #define T_KEY_KILL 0xB /* ctrl-k */ #define T_KEY_DISCARD 0x15 /* ctrl-u */ -#define T_KEY_NEXT 0x10 /* ctrl-] */ -#define T_KEY_PREV 0x0f /* ctrl-[ */ +#define T_KEY_NEXT 0x10 /* ctrl-p */ +#define T_KEY_PREV 0x0f /* ctrl-o */ /* Curses foreground colours (background is black) */ enum { diff --git a/src/windows.c b/src/windows.c index ef0877c..13c154d 100644 --- a/src/windows.c +++ b/src/windows.c @@ -215,7 +215,7 @@ void del_window(ToxWindow *w) } /* Shows next window when tab or back-tab is pressed */ -void set_next_window(wint_t ch) +void set_next_window(int ch) { ToxWindow *end = windows + MAX_WINDOWS_NUM - 1; ToxWindow *inf = active_window; @@ -349,7 +349,7 @@ void draw_active_window(Tox *m) #endif if (ch == '\t' || ch == KEY_BTAB || ch == T_KEY_NEXT || ch == T_KEY_PREV) - set_next_window(ch); + set_next_window((int) ch); else if (ch != ERR) a->onKey(a, m, ch); }