branch: master commit b9f3e3b1c52a6630e1499cea7bab7f9cef4bb5c6 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
swiper.el (swiper-isearch-action): Simplify --- swiper.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/swiper.el b/swiper.el index 36715af..bb97bbf 100644 --- a/swiper.el +++ b/swiper.el @@ -1393,9 +1393,7 @@ that we search only for one character." (defun swiper-isearch-action (x) "Move to X for `swiper-isearch'." - (if (or (numberp x) - (and (> (length x) 0) - (setq x (get-text-property 0 'point x)))) + (if (numberp x) (with-ivy-window (goto-char x) (when (and (or (eq this-command 'ivy-previous-line-or-history)