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

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

[elpa] externals/vertico e2472d1 13/48: simplify


From: Stefan Monnier
Subject: [elpa] externals/vertico e2472d1 13/48: simplify
Date: Mon, 5 Apr 2021 10:54:41 -0400 (EDT)

branch: externals/vertico
commit e2472d110a7097659b5cd77d804a5b427306b931
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    simplify
---
 minicomp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/minicomp.el b/minicomp.el
index dab744c..27b3006 100644
--- a/minicomp.el
+++ b/minicomp.el
@@ -217,7 +217,7 @@
 (defun minicomp--replace-prop (prop fun str)
   "Replace STR parts with PROP using FUN."
   (let ((len (length str)) (pos 0) (chunks))
-    (while (not (= pos len))
+    (while (/= pos len)
       (let ((end (next-single-property-change pos prop str len)))
         (push (if-let (val (get-text-property pos prop str))
                   (funcall fun val)



reply via email to

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