Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.

1_00_stable_10817
Glenn L McGrath 2003-03-18 08:37:57 +00:00
parent 2971ef1730
commit e01f9662a5
1 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,8 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re
static int parse_subst_cmd(sed_cmd_t * const sed_cmd, const char *substr)
{
int oldidx, cflags = REG_NEWLINE;
int oldidx;
int cflags = 0;
char *match;
int idx = 0;
int j;