1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

exec: add missing exec tags in lines of buffers with free content (closes #2086)

This commit is contained in:
Sébastien Helleu
2024-03-07 21:52:21 +01:00
parent ec56a1103f
commit a6c509611a
2 changed files with 18 additions and 14 deletions
+1
View File
@@ -35,6 +35,7 @@ Bug fixes::
* core: add missing mouse events "alt-ctrl-button2" and "alt-ctrl-button3"
* core: remove trailing directory separators in home directories (issue #2070)
* exec: add missing exec tags in lines of buffers with free content (issue #2086)
* fset: allow filename starting with "~" in command `/fset -export`
* irc: add missing tags on self action messages when capability echo-message is enabled (issue #2074)
* irc: don't strip monospace color code 0x11 from incoming messages (issue #2073)
+17 -14
View File
@@ -350,10 +350,11 @@ exec_display_line (struct t_exec_cmd *exec_cmd, struct t_gui_buffer *buffer,
{
snprintf (str_number, sizeof (str_number),
"%d. ", exec_cmd->output_line_nb);
weechat_printf_y (buffer, -1,
"%s%s",
(exec_cmd->line_numbers) ? str_number : " ",
line_color);
weechat_printf_y_date_tags (
buffer, -1, 0, str_tags,
"%s%s",
(exec_cmd->line_numbers) ? str_number : " ",
line_color);
}
else
{
@@ -505,11 +506,12 @@ exec_end_command (struct t_exec_cmd *exec_cmd, int return_code)
{
if (buffer_type == 1)
{
weechat_printf_y (ptr_buffer, -1,
_("%s: end of command %ld (\"%s\"), "
"return code: %d"),
EXEC_PLUGIN_NAME, exec_cmd->number,
exec_cmd->command, return_code);
weechat_printf_y_date_tags (
ptr_buffer, -1, 0, "exec_rc",
_("%s: end of command %ld (\"%s\"), "
"return code: %d"),
EXEC_PLUGIN_NAME, exec_cmd->number,
exec_cmd->command, return_code);
}
else
{
@@ -525,11 +527,12 @@ exec_end_command (struct t_exec_cmd *exec_cmd, int return_code)
{
if (buffer_type == 1)
{
weechat_printf_y (ptr_buffer, -1,
_("%s: unexpected end of command %ld "
"(\"%s\")"),
EXEC_PLUGIN_NAME, exec_cmd->number,
exec_cmd->command);
weechat_printf_y_date_tags (
ptr_buffer, -1, 0, "exec_rc",
_("%s: unexpected end of command %ld "
"(\"%s\")"),
EXEC_PLUGIN_NAME, exec_cmd->number,
exec_cmd->command);
}
else
{