mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: force key "return" to command "/input return" when migrating legacy keys
This commit is contained in:
@@ -10,6 +10,13 @@ This document lists all the changes for each version. +
|
||||
For a list of important changes that require manual actions, please look at release notes.
|
||||
|
||||
|
||||
[[v4.0.1]]
|
||||
== Version 4.0.1 (under dev)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: force key "return" to command "/input return" when migrating legacy keys
|
||||
|
||||
[[v4.0.0]]
|
||||
== Version 4.0.0 (2023-06-24)
|
||||
|
||||
|
||||
@@ -1612,6 +1612,18 @@ config_weechat_update_cb (const void *pointer, void *data,
|
||||
ptr_option, new_option);
|
||||
hashtable_set (data_read, "option", new_option);
|
||||
changes++;
|
||||
if (ptr_section
|
||||
&& (strcmp (ptr_section, "key") == 0)
|
||||
&& (strcmp (new_option, "return") == 0)
|
||||
&& (!ptr_value
|
||||
|| (strcmp (ptr_value, "/input return") != 0)))
|
||||
{
|
||||
gui_chat_printf (
|
||||
NULL,
|
||||
_("Command converted for key \"%s\": \"%s\" => \"%s\""),
|
||||
"return", ptr_value, "/input return");
|
||||
hashtable_set (data_read, "value", "/input return");
|
||||
}
|
||||
}
|
||||
free (new_option);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user