branch: elpa/evil-numbers
commit a6cf01fd900174752b24e2d858df26c90cd6bf8f
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix #21 increment w/ selection ignores items before the cursor
---
evil-numbers.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/evil-numbers.el b/evil-numbers.el
index aae60b1ecb..0e2530f5ec 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -165,6 +165,8 @@ number with a + sign."
(lambda (f) (funcall f beg end)))
(lambda (beg end)
(evil-with-restriction beg end
+ ;; Search from the beginning of the selection, see #21.
+ (goto-char (point-min))
(while (re-search-forward
(rx
(or (and "0"