Skip to content

Commit

Permalink
ivy.el: Make sure swiper-isearch works with "M-r"
Browse files Browse the repository at this point in the history
* ivy.el (ivy-toggle-regexp-quote): Invalidate `ivy--old-text', so
  that `ivy--exhibit' will re-calculate everything after we pressed
  "M-r".
  • Loading branch information
abo-abo committed Dec 18, 2020
1 parent 5de2662 commit e43141d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,7 @@ minibuffer."
(interactive)
(setq ivy--old-re nil)
(cl-rotatef ivy--regex-function ivy--regexp-quote)
(setq ivy--old-text "")
(setq ivy-regex (funcall ivy--regex-function ivy-text)))

(defcustom ivy-format-functions-alist
Expand Down

0 comments on commit e43141d

Please sign in to comment.