diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-03-09 11:43:10 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-03-09 11:43:10 +0100 |
commit | 077de9dc90ee37bd98887f896d024279581b8154 (patch) | |
tree | eee7c056b121048d7eb76a4e3e0578552c748a4e /src/gui | |
parent | 35785a5e053e0ccd4ec36d67f2a374ce1c0673d0 (diff) | |
download | weechat-077de9dc90ee37bd98887f896d024279581b8154.zip |
core: fix broken mouse (bug introduced by the previous commit)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index b74c19f4f..bf39c11e2 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -463,7 +463,7 @@ gui_key_flush (int paste) length_key_str = strlen (key_str); /* set last key used in buffer if combo buffer is empty */ - if (!gui_key_combo_buffer[0]) + if (gui_mouse_event_pending || !gui_key_combo_buffer[0]) last_key_used = i; } @@ -472,7 +472,8 @@ gui_key_flush (int paste) else if (last_key_used >= 0) gui_key_buffer_remove (0, last_key_used + 1); - gui_key_combo_buffer[0] = '\0'; + if (!gui_mouse_event_pending) + gui_key_combo_buffer[0] = '\0'; } /* |