branch: externals/shift-number
commit e8f32237cd79bd539bf68bd3871a250e021b765b
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix sign check ignoring the range limit
This would only be noticeable in edge-cases
but was technically incorrect.
---
shift-number.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shift-number.el b/shift-number.el
index a11ea226b4..afb82b8975 100644
--- a/shift-number.el
+++ b/shift-number.el
@@ -146,7 +146,7 @@ Otherwise search forward limited by LIMIT-END."
(setq num-bounds (cons beg end))
;; Only detect a sign when negative numbers are supported.
- (when shift-number-negative
+ (when (and shift-number-negative (< limit-beg beg))
(let ((ch (char-before beg)))
(cond
((eq ?- ch)