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

script: rename parameters up/down/go to -up/-down/-go in command /script

This commit is contained in:
Sébastien Helleu
2023-09-15 08:43:37 +02:00
parent e62ff286ff
commit 85b5bacfe3
17 changed files with 284 additions and 91 deletions
+4 -4
View File
@@ -1094,8 +1094,8 @@ void
script_buffer_set_keys (struct t_hashtable *hashtable)
{
char *keys[][2] = {
{ "up", "up" },
{ "down", "down" },
{ "up", "-up" },
{ "down", "-down" },
{ "meta-A", "toggleautoload" },
{ "meta-l", "load" },
{ "meta-u", "unload" },
@@ -1113,8 +1113,8 @@ script_buffer_set_keys (struct t_hashtable *hashtable)
for (i = 0; keys[i][0]; i++)
{
if (weechat_config_boolean (script_config_look_use_keys)
|| (strcmp (keys[i][1], "up") == 0)
|| (strcmp (keys[i][1], "down") == 0))
|| (strcmp (keys[i][1], "-up") == 0)
|| (strcmp (keys[i][1], "-down") == 0))
{
snprintf (str_key, sizeof (str_key), "key_bind_%s", keys[i][0]);
snprintf (str_command, sizeof (str_command), "/script %s", keys[i][1]);