removal of automatic space in cmd with SETTINGS_COMMAND_REPLACE_STR
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user