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;
|
pos = out;
|
||||||
if (offset) {
|
if (offset) {
|
||||||
memcpy(pos, cmd, offset - cmd);
|
memcpy(pos, cmd, offset - cmd);
|
||||||
pos += offset - cmd + 1;
|
pos += offset - cmd;
|
||||||
} else {
|
} else {
|
||||||
memcpy(pos, cmd, strlen(cmd));
|
memcpy(pos, cmd, strlen(cmd));
|
||||||
pos += strlen(cmd) + 1;
|
pos += strlen(cmd) + 1;
|
||||||
}
|
|
||||||
pos[-1] = ' ';
|
pos[-1] = ' ';
|
||||||
pos[0] = '\'';
|
}
|
||||||
|
*pos = '\'';
|
||||||
pos++;
|
pos++;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user