aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-08-15 20:00:38 +0200
committerTeddy Wing2021-08-15 20:00:38 +0200
commitdf187d692c334fc16653f145f8bb0e6ba0ea268c (patch)
tree04b56fee899e2e27455cbd785ac4decab22d2502
parent97534a5309fd1274f4716603ee5c207a3dbfcff4 (diff)
downloadreadline-incdec-df187d692c334fc16653f145f8bb0e6ba0ea268c.tar.bz2
incdec: Remove pointless `$point_position` assignment
Here, we really just want to exit the loop. There's no reason to change `$point_position`.
-rw-r--r--incdec.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/incdec.pm b/incdec.pm
index 9772cb8..a400f7f 100644
--- a/incdec.pm
+++ b/incdec.pm
@@ -18,8 +18,6 @@ sub incdec {
while ($point_position < length($line_part)) {
$line_part =~ /(\d+)/;
if ($-[0] <= $point_position && $point_position < $+[0]) {
- $point_position = $-[0];
-
last;
}