diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/plugins/exec/exec.c | 31 |
2 files changed, 18 insertions, 14 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index c30dea539..be5ed2f93 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -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) diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c index b2b6b69bc..b60cc3129 100644 --- a/src/plugins/exec/exec.c +++ b/src/plugins/exec/exec.c @@ -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 { |