emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 007d672 012/399: swiper.el (swiper--update-input-ivy): Use


From: Oleh Krehel
Subject: [elpa] master 007d672 012/399: swiper.el (swiper--update-input-ivy): Use display-graphic-p
Date: Sat, 20 Jul 2019 14:56:38 -0400 (EDT)

branch: master
commit 007d6724bd43dab532ab1f9c8ab83c37d8a341f5
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]