summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-12-19 09:00:59 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-12-19 09:00:59 +0100
commit0faf58a287999ab876462ddb104a59acd3d9edb1 (patch)
tree2ba80d2b841be8d60bb304c5038de44437d15ae8
parentxfer: add missing tags in DCC chat messages: nick_xxx, prefix_nick_ccc, logN (diff)
downloadweechat-0faf58a287999ab876462ddb104a59acd3d9edb1.tar.xz
weechat-0faf58a287999ab876462ddb104a59acd3d9edb1.zip
core: fix default mouse buttons actions for script buffer (focus the window before executing action)
-rw-r--r--ChangeLog4
-rw-r--r--src/gui/curses/gui-curses-key.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f798b46bf..c4f59fe89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,14 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
-v0.4.0-dev, 2012-12-17
+v0.4.0-dev, 2012-12-19
Version 0.4.0 (under dev!)
--------------------------
+* core: fix default mouse buttons actions for script buffer (focus the window
+ before executing action)
* core: add git version in build, display it in "weechat-curses --help" and
/version
* core: fix scroll of one page down when weechat.look.scroll_page_percent is
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c
index fd8b100f8..425ec1e6e 100644
--- a/src/gui/curses/gui-curses-key.c
+++ b/src/gui/curses/gui-curses-key.c
@@ -259,8 +259,8 @@ gui_key_default_bindings (int context)
{
/* mouse events on chat area */
BIND("@chat:button1", "/window ${_window_number}");
- BIND("@chat(script.scripts):button1", "/script go ${_chat_line_y}");
- BIND("@chat(script.scripts):button2", "/script go ${_chat_line_y};/script installremove -q ${script_name_with_extension}");
+ BIND("@chat(script.scripts):button1", "/window ${_window_number};/script go ${_chat_line_y}");
+ BIND("@chat(script.scripts):button2", "/window ${_window_number};/script go ${_chat_line_y};/script installremove -q ${script_name_with_extension}");
BIND("@chat:button1-gesture-left", "/window ${_window_number};/buffer -1");
BIND("@chat:button1-gesture-right", "/window ${_window_number};/buffer +1");
BIND("@chat:button1-gesture-left-long", "/window ${_window_number};/buffer 1");