core: send mouse code only one time to terminal with command /mouse enable|disable|toggle
This commit is contained in:
parent
14edef2a4d
commit
1a3051188c
@ -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
|
||||
|
@ -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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user