branch: externals/ivy-hydra
commit 311999407ab67f35927f7791e6bb896cbd524973
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)))