summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-mouse.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-12-19 09:10:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-12-19 09:10:16 +0100
commit3fcb00bfc54465f4c55aea12c2a1f0c1623ee343 (patch)
tree39651473787b010eab8632c9c2790ddbdae3a4c6 /src/gui/curses/gui-curses-mouse.c
parente667b606a979e041a9730146660568369aaefdcf (diff)
downloadweechat-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.c7
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-");