summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.asciidoc2
-rw-r--r--src/core/wee-command.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc
index 0107dba80..23df12716 100644
--- a/ChangeLog.asciidoc
+++ b/ChangeLog.asciidoc
@@ -40,6 +40,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
=== Bugs fixed
+* core: send mouse code only one time to terminal with command
+ /mouse enable|disable|toggle
* core: fix buffer property "lines_hidden" when merging buffers or when a line
is removed from a buffer (closes #226)
* core: display time in bare display only if option
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 8d12aeea0..7f4f99f61 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3951,7 +3951,6 @@ COMMAND_CALLBACK(mouse)
/* enable mouse */
if (string_strcasecmp (argv[1], "enable") == 0)
{
- gui_mouse_enable ();
config_file_option_set (config_look_mouse, "1", 1);
gui_chat_printf (NULL, _("Mouse enabled"));
if (argc > 2)
@@ -3962,7 +3961,6 @@ COMMAND_CALLBACK(mouse)
/* disable mouse */
if (string_strcasecmp (argv[1], "disable") == 0)
{
- gui_mouse_disable ();
config_file_option_set (config_look_mouse, "0", 1);
gui_chat_printf (NULL, _("Mouse disabled"));
if (argc > 2)
@@ -3975,13 +3973,11 @@ COMMAND_CALLBACK(mouse)
{
if (gui_mouse_enabled)
{
- gui_mouse_disable ();
config_file_option_set (config_look_mouse, "0", 1);
gui_chat_printf (NULL, _("Mouse disabled"));
}
else
{
- gui_mouse_enable ();
config_file_option_set (config_look_mouse, "1", 1);
gui_chat_printf (NULL, _("Mouse enabled"));
}