* editors/sed.c (parse_cmd_str): Remove redundant code to skip initial
whitespace.
This commit is contained in:
parent
5ed78adca5
commit
9eaf059d28
@ -393,10 +393,6 @@ static char *parse_cmd_str(struct sed_cmd * const sed_cmd, const char *const cmd
|
|||||||
* part1 part2 part3
|
* part1 part2 part3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* skip initial whitespace */
|
|
||||||
while (isspace(cmdstr[idx]))
|
|
||||||
idx++;
|
|
||||||
|
|
||||||
/* first part (if present) is an address: either a number or a /regex/ */
|
/* first part (if present) is an address: either a number or a /regex/ */
|
||||||
if (isdigit(cmdstr[idx]) || cmdstr[idx] == '/')
|
if (isdigit(cmdstr[idx]) || cmdstr[idx] == '/')
|
||||||
idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);
|
idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);
|
||||||
|
Loading…
Reference in New Issue
Block a user