summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/mum2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mum b/src/mum
index 402053e..a31f45d 100755
--- a/src/mum
+++ b/src/mum
@@ -30,7 +30,7 @@ my $d = qr{
| (?&next) (?{ local %ref = (next => $^R) })
| (?&prev) (?{ local %ref = (prev => $^R) })
)
- ( ([+-] \d+) (?{ local %ref = (%ref, plus => $^N) })
+ ( ([+-] \d+) (?{ local %ref = (%ref, plus => 0+$^N) })
)?
)
(?<grep> g((?&next)) (?{ local %ref = (grep => $^R) })