removal of automatic space in cmd with SETTINGS_COMMAND_REPLACE_STR

This commit is contained in:
nova
2026-05-21 00:09:19 +02:00
parent f807fe56b5
commit 41af25e0b1

View File

@@ -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;