aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--incdec.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/incdec.pm b/incdec.pm
index e8efe0b..d2982c4 100644
--- a/incdec.pm
+++ b/incdec.pm
@@ -10,9 +10,8 @@ sub incdec {
$is_backward ||= 0;
$line =~ /(\d+)/;
- # print $-[0] . ':' . $+[0] . ';' . $point_position;
- if ($-[0] <= $point_position || $point_position <= $+[0]) {
+ if ($-[0] <= $point_position && $point_position < $+[0]) {
$point_position = $-[0];
}