summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csplit.c b/src/csplit.c
index b8713fe69..e3de13a0f 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -972,7 +972,8 @@ process_regexp (struct control *p, int repetition)
if (!ignore)
close_output_file ();
- current_line = break_line;
+ if (p->offset > 0)
+ current_line = break_line;
}
/* Split the input file according to the control records we have built. */