diff options
| author | Teddy Wing | 2021-08-15 20:00:38 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-15 20:00:38 +0200 |
| commit | df187d692c334fc16653f145f8bb0e6ba0ea268c (patch) | |
| tree | 04b56fee899e2e27455cbd785ac4decab22d2502 | |
| parent | 97534a5309fd1274f4716603ee5c207a3dbfcff4 (diff) | |
| download | readline-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.pm | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; } |
