diff options
| author | Teddy Wing | 2021-08-19 20:49:48 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-19 20:49:48 +0200 |
| commit | b0d5568c7c9546945471c9b95857f6666411ad87 (patch) | |
| tree | 1b122278ba26ef800867653c1746ff43d24bd73f | |
| parent | 79513cbf26a436a5a62fe6f88cfa768001756549 (diff) | |
| download | readline-incdec-b0d5568c7c9546945471c9b95857f6666411ad87.tar.bz2 | |
incdec: Fix backwards point at end of line case
Update the condition that increments the last number if the point is at
the end.
| -rw-r--r-- | incdec.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ sub incdec { } } - if ($is_backward) { + if ($is_backward && $point_position == length $line) { $start_position = $previous_match_start; } |
