From 41af25e0b107e5ba13898e03ed23871fa8d535bf Mon Sep 17 00:00:00 2001 From: nova Date: Thu, 21 May 2026 00:09:19 +0200 Subject: [PATCH] removal of automatic space in cmd with SETTINGS_COMMAND_REPLACE_STR --- backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend.c b/backend.c index 0fa6bd3..6e5f44e 100644 --- a/backend.c +++ b/backend.c @@ -100,13 +100,13 @@ char* parse_cmd(const char *cmd, file *f){ pos = out; if (offset) { memcpy(pos, cmd, offset - cmd); - pos += offset - cmd + 1; + pos += offset - cmd; } else { memcpy(pos, cmd, strlen(cmd)); pos += strlen(cmd) + 1; + pos[-1] = ' '; } - pos[-1] = ' '; - pos[0] = '\''; + *pos = '\''; pos++; i = 0;