diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-12-19 09:10:16 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-12-19 09:10:16 +0100 |
commit | 3fcb00bfc54465f4c55aea12c2a1f0c1623ee343 (patch) | |
tree | 39651473787b010eab8632c9c2790ddbdae3a4c6 /src/gui/curses/gui-curses-mouse.c | |
parent | e667b606a979e041a9730146660568369aaefdcf (diff) | |
download | weechat-3fcb00bfc54465f4c55aea12c2a1f0c1623ee343.zip |
core: fix stuck mouse (patch from Nei) (bug #36533)
Diffstat (limited to 'src/gui/curses/gui-curses-mouse.c')
-rw-r--r-- | src/gui/curses/gui-curses-mouse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-mouse.c b/src/gui/curses/gui-curses-mouse.c index 34c5c2fd5..fae539805 100644 --- a/src/gui/curses/gui-curses-mouse.c +++ b/src/gui/curses/gui-curses-mouse.c @@ -323,6 +323,13 @@ gui_mouse_event_code2key (const char *code) } } + /* nothing found, reset now or mouse will be stuck */ + if (!key[0]) + { + gui_mouse_event_reset (); + return NULL; + } + if (!MOUSE_CODE_END(code[0])) { strcat (key, "-event-"); |