aboutsummaryrefslogtreecommitdiffstats
path: root/incdec.pm
diff options
context:
space:
mode:
Diffstat (limited to 'incdec.pm')
-rw-r--r--incdec.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/incdec.pm b/incdec.pm
index 3f4c8ef..bcf62e0 100644
--- a/incdec.pm
+++ b/incdec.pm
@@ -25,10 +25,10 @@ sub incdec {
}
if ($point_position >= $+[0]) {
- $line_start .= substr($line_part, $previous_point_position, $+[0]);
+ $line_start .= substr($line_part, 0, $+[0]);
$line_part = substr($line_part, $+[0]);
$previous_point_position = $point_position;
- $point_position = 0;
+ $point_position -= $+[0];
next;
}