branch: externals/shift-number
commit 329378b2878910c8de28f9ca3a502b39efbb55fc
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix for the search before the sign ignoring the range limit
---
shift-number.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shift-number.el b/shift-number.el
index 9d50693aac..4c6b2002d3 100644
--- a/shift-number.el
+++ b/shift-number.el
@@ -157,7 +157,7 @@ Otherwise search forward limited by LIMIT-END."
(setq has-sign t)))
;; Ignore the sign when immediately preceded by a number, e.g.
`123-456'.
- (when has-sign
+ (when (and has-sign (< limit-beg (1- beg)))
(save-excursion
(goto-char (1- beg))
(when (looking-back shift-number-regexp limit-beg)