aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/sed/transform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/sed/transform.c b/modules/sed/transform.c
index 67e0de8..ec7983f 100644
--- a/modules/sed/transform.c
+++ b/modules/sed/transform.c
@@ -626,10 +626,6 @@ _single_transform_name_to_slist (struct transform *tr,
disp = rmp[0].rm_eo;
- if (rmp[0].rm_so)
- if (transform_append (tr, slist, input, rmp[0].rm_so))
- return 1;
-
nmatches++;
if (tf->match_number && nmatches < tf->match_number)
{
@@ -639,6 +635,10 @@ _single_transform_name_to_slist (struct transform *tr,
continue;
}
+ if (rmp[0].rm_so)
+ if (transform_append (tr, slist, input, rmp[0].rm_so))
+ return 1;
+
for (segm = tf->repl_head; segm; segm = segm->next)
{
switch (segm->type)

Return to:

Send suggestions and report system problems to the System administrator.