1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 21:06:38 +02:00

script: fix default mouse keys (closes #2076)

Some parameters of command `/script` were renamed in commit
85b5bacfe3 but the default mouse keys were not
changed and still using the old parameters names.
This commit is contained in:
Sébastien Helleu
2024-02-21 21:10:25 +01:00
parent 4c5f98946a
commit b5a32c0fa9
10 changed files with 62 additions and 47 deletions
+4 -4
View File
@@ -135,21 +135,21 @@ script_mouse_init ()
weechat_hashtable_set (
keys,
"@chat(" SCRIPT_PLUGIN_NAME "." SCRIPT_BUFFER_NAME "):button1",
"/window ${_window_number};/script go ${_chat_line_y}");
"/window ${_window_number};/script -go ${_chat_line_y}");
weechat_hashtable_set (
keys,
"@chat(" SCRIPT_PLUGIN_NAME "." SCRIPT_BUFFER_NAME "):button2",
"/window ${_window_number};"
"/script go ${_chat_line_y};"
"/script -go ${_chat_line_y};"
"/script installremove -q ${script_name_with_extension}");
weechat_hashtable_set (
keys,
"@chat(" SCRIPT_PLUGIN_NAME "." SCRIPT_BUFFER_NAME "):wheelup",
"/script up 5");
"/script -up 5");
weechat_hashtable_set (
keys,
"@chat(" SCRIPT_PLUGIN_NAME "." SCRIPT_BUFFER_NAME "):wheeldown",
"/script down 5");
"/script -down 5");
weechat_hashtable_set (keys, "__quiet", "1");
weechat_key_bind ("mouse", keys);