From cde66456fb65e19905aa0e5da399c364cf3f1582 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 22 Oct 2005 16:22:52 +0000 Subject: Fixed bug with keyboard and "^" key (was inserting two "^") --- src/gui/curses/gui-input.c | 3 +++ weechat/src/gui/curses/gui-input.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c index 118ae9f50..90ffc97be 100644 --- a/src/gui/curses/gui-input.c +++ b/src/gui/curses/gui-input.c @@ -256,6 +256,9 @@ gui_input_read () if ((gui_key_pressed (key_str) != 0) && (insert_ok)) { + if (strcmp (key_str, "^^") == 0) + key_str[1] = '\0'; + if (gui_current_window->buffer->dcc) gui_input_action_dcc (gui_current_window, key_str); else diff --git a/weechat/src/gui/curses/gui-input.c b/weechat/src/gui/curses/gui-input.c index 118ae9f50..90ffc97be 100644 --- a/weechat/src/gui/curses/gui-input.c +++ b/weechat/src/gui/curses/gui-input.c @@ -256,6 +256,9 @@ gui_input_read () if ((gui_key_pressed (key_str) != 0) && (insert_ok)) { + if (strcmp (key_str, "^^") == 0) + key_str[1] = '\0'; + if (gui_current_window->buffer->dcc) gui_input_action_dcc (gui_current_window, key_str); else -- cgit v1.2.3