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

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

[elpa] externals/ivy-hydra 3119994 144/395: ivy.el (ivy--tramp-prefix-p)


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 3119994 144/395: ivy.el (ivy--tramp-prefix-p): Fix regression
Date: Thu, 25 Feb 2021 08:31:50 -0500 (EST)

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

    ivy.el (ivy--tramp-prefix-p): Fix regression
    
    If `ivy--regex-fuzzy' is used, the match data needs to be saved.
    
    Fixes #2439
---
 ivy.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 3841225..c5a548f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1128,11 +1128,13 @@ contains a single candidate.")
            (cond ((string-match
                    "\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
                    ivy-text)
-                  (ivy-set-text (ivy-state-current ivy-last)))
+                  (save-match-data
+                    (ivy-set-text (ivy-state-current ivy-last))))
                  ((string-match
                    "\\`\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
                    (ivy-state-current ivy-last))
-                  (ivy-set-text (ivy-state-current ivy-last)))))
+                  (save-match-data
+                    (ivy-set-text (ivy-state-current ivy-last))))))
       (string-match
        "\\`/\\([^/]+?\\):\\(?:\\(.*\\)@\\)?\\(.*\\)\\'"
        ivy-text)))



reply via email to

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