summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-10-22 16:22:52 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-10-22 16:22:52 +0000
commitcde66456fb65e19905aa0e5da399c364cf3f1582 (patch)
treefa8bba3f785fae7c7d1cf615c08216c91d7e5aab
parent6beb8b6465fe2a3d7f89717ce2383f3d0027c404 (diff)
downloadweechat-cde66456fb65e19905aa0e5da399c364cf3f1582.zip
Fixed bug with keyboard and "^" key (was inserting two "^")
-rw-r--r--src/gui/curses/gui-input.c3
-rw-r--r--weechat/src/gui/curses/gui-input.c3
2 files changed, 6 insertions, 0 deletions
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