From 2433da634252f5eb6f253cb420b771eea6f1fcf9 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 17 Jan 2013 19:43:49 +0000 Subject: [PATCH] Fixed logical or --- src/input_win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input_win.c b/src/input_win.c index 47d1d23e..09734079 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -131,7 +131,7 @@ inp_get_char(char *input, int *size) prof_handle_activity(); } } - + // if it wasn't an arrow key etc if (!_handle_edit(result, ch, input, size)) { if (_printable(ch) && result != KEY_CODE_YES) { @@ -313,7 +313,7 @@ _handle_edit(int result, const wint_t ch, char *input, int *size) return 1; // CTRL-RIGHT - } else if ((result == KEY_CODE_YES) && (ch == 555 | ch == 554) && (inp_x < display_size)) { + } else if ((result == KEY_CODE_YES) && (ch == 555 || ch == 554) && (inp_x < display_size)) { input[*size] = '\0'; gchar *curr_ch = g_utf8_offset_to_pointer(input, inp_x); gchar *next_ch = g_utf8_find_next_char(curr_ch, NULL);