branch: master
commit 686cf5a7646216ab20af585bd7737debdf4a540f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
swiper.el (swiper--action): Fix for emacs -nw
Fixes #1923
---
swiper.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/swiper.el b/swiper.el
index a9a9974..99efef7 100644
--- a/swiper.el
+++ b/swiper.el
@@ -802,7 +802,7 @@ the face, window and priority of the overlay."
(swiper--ensure-visible)
(cond (swiper-action-recenter
(recenter))
- (swiper--current-window-start
+ ((and swiper--current-window-start (display-graphic-p))
(set-window-start (selected-window)
swiper--current-window-start)))
(when (/= (point) swiper--opoint)
(unless (and transient-mark-mode mark-active)