branch: elpa/shellcop
commit 7ef2a98e4adbc50a92f191b8d44b485ccd3138b0
Author: Chen Bin <chenbin...@gmail.com>
Commit: Chen Bin <chenbin...@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