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

alias: keep spaces at the end of /alias command arguments

This commit is contained in:
Sébastien Helleu
2025-02-15 23:36:53 +01:00
parent 9285afc3e2
commit c275f9d994
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -25,8 +25,10 @@
#include "../weechat-plugin.h"
#include "alias.h"
#include "alias-command.h"
#include "alias-config.h"
/*
* Adds a new alias.
*/
@@ -350,7 +352,9 @@ alias_command_cb (const void *pointer, void *data,
void
alias_command_init ()
{
weechat_hook_command (
struct t_hook *ptr_hook;
ptr_hook = weechat_hook_command (
"alias",
N_("list, add or remove command aliases"),
/* TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated */
@@ -406,4 +410,5 @@ alias_command_init ()
" || rename %(alias) %(alias)"
" || missing",
&alias_command_cb, NULL, NULL);
ALIAS_COMMAND_KEEP_SPACES;
}
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_PLUGIN_ALIAS_COMMAND_H
#define WEECHAT_PLUGIN_ALIAS_COMMAND_H
#define ALIAS_COMMAND_KEEP_SPACES weechat_hook_set (ptr_hook, "keep_spaces_right", "1")
extern void alias_command_init ();
#endif /* WEECHAT_PLUGIN_ALIAS_COMMAND_H */