branch: elpa/evil-numbers
commit 8403eeb125ef0dfe01b0f566e304c563e6ed084c
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>

    Correct oversight in 299e0418caa43cb7c15dd21d2dd40b75b147990f
    
    Can't use `end' as this value changes while looping.
---
 evil-numbers.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/evil-numbers.el b/evil-numbers.el
index 97dd9d3399..dc151fb73b 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -183,7 +183,10 @@ NO-OFFSET don't apply offsets, expected  for VIM like 
behavior.
                        ;; Don't search back before this point.
                        (point)
                        ;; Ignore values after this point.
-                       end
+                       ;; Rely on narrowing, don't use `end' since
+                       ;; edits cause the absolute maximum point
+                       ;; to change while looping.
+                       (point-max)
                        ;; Type is handled here, ignore.
                        nil
                        ;; Incremental is handled here, ignore.

Reply via email to