summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-03-08 08:19:20 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-08 08:19:20 +0100
commit431cf23a0cbf869970db4580470a14a36ef7ede4 (patch)
treee0ea469e0ba3719b6022541494c33a09cc6d095c
parenta6c509611a89f6897db1fb40dd2a5fd2691a3175 (diff)
downloadweechat-431cf23a0cbf869970db4580470a14a36ef7ede4.zip
exec: remove trailing space on buffers with free content when line numbers are not displayed
-rw-r--r--ChangeLog.adoc1
-rw-r--r--src/plugins/exec/exec.c2
2 files changed, 2 insertions, 1 deletions
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