emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-numbers d09a0e676a 125/145: Fix #25 increment steps t


From: ELPA Syncer
Subject: [nongnu] elpa/evil-numbers d09a0e676a 125/145: Fix #25 increment steps to the next line
Date: Thu, 6 Jan 2022 03:00:24 -0500 (EST)

branch: elpa/evil-numbers
commit d09a0e676ad5db620922cf3d073dc547c47cf0c8
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix #25 increment steps to the next line
---
 CHANGELOG.org   | 1 +
 evil-numbers.el | 6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.org b/CHANGELOG.org
index bb57951443..247c03b7ca 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -6,6 +6,7 @@
    + Add =evil-numbers-case= option for the case to use for hexadecimal values 
(defaults to the current case).
 
 ** Fixes
+   + Fix #25 increment steps to the next line.
    + Fix #24 hexadecimal values case changes when incrementing/decrementing.
    + Fix padding being ignored with block selection.
    + Fix #21 increment w/ selection ignores items before the cursor.
diff --git a/evil-numbers.el b/evil-numbers.el
index 9537185b7a..805013d5b9 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -521,10 +521,8 @@ number with a + sign."
              ;; `forward-char' so that we do not match the number
              ;; directly behind us.
              ;;
-             ;; Check the range to avoid end-of-buffer warning.
-             ;; Harmless but happens with block selection every
-             ;; time which is unreasonably noisy.
-             (unless (>= (1+ (point)) (point-max))
+             ;; Check the range to avoid end-of-buffer warning or skipping to 
the next line.
+             (unless (>= (1+ (point)) (point-at-eol))
                (forward-char))
              (when (evil-numbers--inc-at-pt-impl-with-search
                     amount (point-at-bol) (point-at-eol) padded)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]