[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-numbers f4bbb729ee: Cleanup: minor simplificaiton to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-numbers f4bbb729ee: Cleanup: minor simplificaiton to adding the final match range |
Date: |
Sun, 8 Dec 2024 01:00:01 -0500 (EST) |
branch: elpa/evil-numbers
commit f4bbb729eebeef26966fae17bd414a7b49f82275
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: minor simplificaiton to adding the final match range
---
evil-numbers.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/evil-numbers.el b/evil-numbers.el
index 7bb964cc59..22b580d415 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -356,14 +356,12 @@ Each item in MATCH-CHARS is a cons pair.
;; Match 0 for the full range (expected at the beginning).
(when do-match
- (cond
- (is-forward
- (setq match-list (nreverse match-list))
- (push (point) match-list)
- (push point-init match-list))
- (t
- (push point-init match-list)
- (push (point) match-list)))
+ (setq match-list
+ (cond ; `point-init' `point' `match-list'.
+ (is-forward
+ (cons point-init (cons (point) (nreverse match-list))))
+ (t ; `point' `point-init' `match-list'.
+ (cons (point) (cons point-init match-list)))))
(set-match-data match-list)))
t))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/evil-numbers f4bbb729ee: Cleanup: minor simplificaiton to adding the final match range,
ELPA Syncer <=