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

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

[nongnu] elpa/shellcop 7ef2a98e4a 1/2: fixed line splitting


From: ELPA Syncer
Subject: [nongnu] elpa/shellcop 7ef2a98e4a 1/2: fixed line splitting
Date: Wed, 29 Jun 2022 11:59:14 -0400 (EDT)

branch: elpa/shellcop
commit 7ef2a98e4adbc50a92f191b8d44b485ccd3138b0
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    fixed line splitting
---
 shellcop.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shellcop.el b/shellcop.el
index 39d3214931..7ede759f38 100644
--- a/shellcop.el
+++ b/shellcop.el
@@ -406,7 +406,7 @@ Or else erase current buffer."
                            ;; line's format: "dir | score | timestamp"
                            (let* ((a (split-string line "|")))
                              (cons (nth 0 a) (string-to-number (nth 2 a)))))
-                         (split-string (string-trim content)))))
+                         (split-string (string-trim content) "[\n\r]+"))))
 
       ;; sort by timestamp in descending order
       (setq dirs (sort dirs (lambda (a b) (> (cdr a) (cdr b)))))



reply via email to

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