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

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

[elpa] externals/ivy-hydra ad00c47 039/395: swiper.el (swiper--re-builde


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra ad00c47 039/395: swiper.el (swiper--re-builder): Treat "\n" in input as a newline
Date: Thu, 25 Feb 2021 08:31:26 -0500 (EST)

branch: externals/ivy-hydra
commit ad00c476363d5db91b2cb98e4b8129ef0323280a
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    swiper.el (swiper--re-builder): Treat "\n" in input as a newline
---
 swiper.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/swiper.el b/swiper.el
index bcab606..55bfd88 100644
--- a/swiper.el
+++ b/swiper.el
@@ -727,6 +727,7 @@ When capture groups are present in the input, print them 
instead of lines."
 This is the regex used in the minibuffer where candidates have
 line numbers.  For the buffer, use `ivy--regex' instead."
   (let* ((re-builder (ivy-alist-setting ivy-re-builders-alist))
+         (str (replace-regexp-in-string "\\\\n" "\n" str))
          (re (cond
                ((equal str "")
                 "")



reply via email to

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