mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
Always apply commands with no specified range.
This commit is contained in:
parent
fa2661f2e5
commit
02c40a72b8
@ -608,6 +608,10 @@ static void process_file(FILE *file)
|
|||||||
* entry point into sedding...
|
* entry point into sedding...
|
||||||
*/
|
*/
|
||||||
if (
|
if (
|
||||||
|
/* no range necessary */
|
||||||
|
(sed_cmds[i].beg_line == 0 && sed_cmds[i].end_line == 0 &&
|
||||||
|
sed_cmds[i].beg_match == NULL &&
|
||||||
|
sed_cmds[i].end_match == NULL) ||
|
||||||
/* this line number is the first address we're looking for */
|
/* this line number is the first address we're looking for */
|
||||||
(sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) ||
|
(sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) ||
|
||||||
/* this line matches our first address regex */
|
/* this line matches our first address regex */
|
||||||
|
4
sed.c
4
sed.c
@ -608,6 +608,10 @@ static void process_file(FILE *file)
|
|||||||
* entry point into sedding...
|
* entry point into sedding...
|
||||||
*/
|
*/
|
||||||
if (
|
if (
|
||||||
|
/* no range necessary */
|
||||||
|
(sed_cmds[i].beg_line == 0 && sed_cmds[i].end_line == 0 &&
|
||||||
|
sed_cmds[i].beg_match == NULL &&
|
||||||
|
sed_cmds[i].end_match == NULL) ||
|
||||||
/* this line number is the first address we're looking for */
|
/* this line number is the first address we're looking for */
|
||||||
(sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) ||
|
(sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) ||
|
||||||
/* this line matches our first address regex */
|
/* this line matches our first address regex */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user