branch: elpa/htmlize
commit 3faeac8598de391d20c11209c3ec2b75a7070834
Author: Hrvoje Niksic <[email protected]>
Commit: Hrvoje Niksic <[email protected]>

    Explicitly mark sort as stable.
---
 htmlize.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htmlize.el b/htmlize.el
index 1553277..5b8005a 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -518,7 +518,7 @@ next-single-char-property-change")))
     (if additions
         (let ((textlist nil)
               (strpos 0))
-          (dolist (add (sort* additions #'< :key #'car))
+          (dolist (add (stable-sort additions #'< :key #'car))
             (let ((addpos (car add))
                   (addtext (cdr add)))
               (push (substring text strpos addpos) textlist)

Reply via email to