[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6b7c22e: ; * lisp/replace.el (occur-after-change-function): Fix l
From: |
Mattias Engdegård |
Subject: |
master 6b7c22e: ; * lisp/replace.el (occur-after-change-function): Fix logic mistake |
Date: |
Mon, 26 Jul 2021 03:53:40 -0400 (EDT) |
branch: master
commit 6b7c22e7ee87a57ff78e2baf0baa847e34b9b4da
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
; * lisp/replace.el (occur-after-change-function): Fix logic mistake
---
lisp/replace.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/replace.el b/lisp/replace.el
index f8c5fed..d0c6366 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1407,9 +1407,9 @@ To return to ordinary Occur mode, use
\\[occur-cease-edit]."
(common-prefix
(lambda (s1 s2)
(let ((c (compare-strings s1 nil nil s2 nil nil)))
- (if (zerop c)
- (length s1)
- (1- (abs c))))))
+ (if (numberp c)
+ (1- (abs c))
+ (length s1)))))
(prefix-len (funcall common-prefix buf-str text))
(suffix-len (funcall common-prefix
(reverse buf-str) (reverse text))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 6b7c22e: ; * lisp/replace.el (occur-after-change-function): Fix logic mistake,
Mattias Engdegård <=