From 431cf23a0cbf869970db4580470a14a36ef7ede4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 8 Mar 2024 08:19:20 +0100 Subject: [PATCH] exec: remove trailing space on buffers with free content when line numbers are not displayed --- ChangeLog.adoc | 1 + src/plugins/exec/exec.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index be5ed2f93..ac187c556 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: remove trailing space on buffers with free content when line numbers are not displayed * 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) diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c index b60cc3129..a6cf2f937 100644 --- a/src/plugins/exec/exec.c +++ b/src/plugins/exec/exec.c @@ -353,7 +353,7 @@ exec_display_line (struct t_exec_cmd *exec_cmd, struct t_gui_buffer *buffer, weechat_printf_y_date_tags ( buffer, -1, 0, str_tags, "%s%s", - (exec_cmd->line_numbers) ? str_number : " ", + (exec_cmd->line_numbers) ? str_number : "", line_color); } else