branch: master
commit 2ea56ec661adce601e5f3bcc0e28ee013a052c27
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-occur): Fix when ivy--old-re isn't a string
---
ivy.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 2728cb2..b91ad4c 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2429,7 +2429,10 @@ There is no limit on the number of *ivy-occur* buffers."
(setq ivy--old-cands
(split-string
(shell-command-to-string
- (format counsel-git-grep-cmd ivy--old-re))
+ (format counsel-git-grep-cmd
+ (if (stringp ivy--old-re)
+ ivy--old-re
+ (caar ivy--old-re))))
"\n"
t))
(ivy-occur-grep-mode))