diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c index 9b360b669..27c345921 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -423,10 +423,10 @@ static const char *parse_cmd_args(sed_cmd_t *sed_cmd, const char *cmdstr) | |||
423 | if (*cmdstr == '\n' || *cmdstr == '\\') { | 423 | if (*cmdstr == '\n' || *cmdstr == '\\') { |
424 | cmdstr++; | 424 | cmdstr++; |
425 | break; | 425 | break; |
426 | } else if (isspace(*cmdstr)) | 426 | } |
427 | cmdstr++; | 427 | if (!isspace(*cmdstr)) |
428 | else | ||
429 | break; | 428 | break; |
429 | cmdstr++; | ||
430 | } | 430 | } |
431 | sed_cmd->string = xstrdup(cmdstr); | 431 | sed_cmd->string = xstrdup(cmdstr); |
432 | /* "\anychar" -> "anychar" */ | 432 | /* "\anychar" -> "anychar" */ |