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

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

[elpa] externals/ivy-hydra 51430ff 233/395: counsel.el: Fix candidate sp


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 51430ff 233/395: counsel.el: Fix candidate splitting when eol is CR or CRLF
Date: Thu, 25 Feb 2021 08:32:09 -0500 (EST)

branch: externals/ivy-hydra
commit 51430ff74fb9629c6dfdd5a4330a194e012626f7
Author: Eder Elorriaga <gexplorer8@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    counsel.el: Fix candidate splitting when eol is CR or CRLF
    
    Fixes #2483
---
 ivy-test.el | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/ivy-test.el b/ivy-test.el
index a4a641a..c55ac2d 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1471,6 +1471,21 @@ a buffer visiting a file."
                         :dir "tests/find-file/directories-with-spaces/"))
              "tests/find-file/directories-with-spaces/bar baz ii/file2"))))
 
+(ert-deftest counsel--split-string-with-eol-cr ()
+  (should
+     (equal (counsel--split-string "one\rtwo")
+            '("one" "two"))))
+
+(ert-deftest counsel--split-string-with-eol-lf ()
+  (should
+     (equal (counsel--split-string "one\ntwo")
+            '("one" "two"))))
+
+(ert-deftest counsel--split-string-with-eol-crlf ()
+  (should
+     (equal (counsel--split-string "one\r\ntwo")
+            '("one" "two"))))
+
 (ert-deftest ivy-avy ()
   (when (require 'avy nil t)
     (let ((enable-recursive-minibuffers t)



reply via email to

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