branch: master commit 007d6724bd43dab532ab1f9c8ab83c37d8a341f5 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
swiper.el (swiper--update-input-ivy): Use display-graphic-p `window-system' is deprecated. --- swiper.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swiper.el b/swiper.el index ad66f20..7054f9d 100644 --- a/swiper.el +++ b/swiper.el @@ -675,10 +675,10 @@ Matched candidates should have `swiper-invocation-face'." (setq swiper--current-match-start (match-beginning 0)))) (isearch-range-invisible (line-beginning-position) (line-end-position)) - (unless (or (null window-system) - (and - (>= (point) (window-start)) - (<= (point) (window-end (ivy-state-window ivy-last) t)))) + (when (and (display-graphic-p) + (or + (< (point) (window-start)) + (> (point) (window-end (ivy-state-window ivy-last) t)))) (recenter)) (setq swiper--current-window-start (window-start)))) (swiper--add-overlays