Skip to content

Commit

Permalink
swiper.el (swiper-isearch-action): Make ivy-previous-line-or-history …
Browse files Browse the repository at this point in the history
…work

Fixes #2158
  • Loading branch information
abo-abo committed Jul 23, 2019
1 parent 38b5d83 commit c7ffd06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swiper.el
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,11 @@ that we search only for one character."
(setq x (get-text-property 0 'point x))))
(with-ivy-window
(goto-char x)
(when (and (or (eq this-command 'ivy-previous-line-or-history)
(and (eq this-command 'ivy-done)
(eq last-command 'ivy-previous-line-or-history)))
(looking-back ivy--old-re (line-beginning-position)))
(goto-char (match-beginning 0)))
(isearch-range-invisible (point) (1+ (point)))
(when swiper-action-recenter
(recenter))
Expand Down

0 comments on commit c7ffd06

Please sign in to comment.