[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b7574fe 234/399: swiper.el: Extra condition to recenter in
From: |
Oleh Krehel |
Subject: |
[elpa] master b7574fe 234/399: swiper.el: Extra condition to recenter in terminal |
Date: |
Sat, 20 Jul 2019 14:57:30 -0400 (EDT) |
branch: master
commit b7574fe1515491bb31827025942a16cb4a102434
Author: Jimmy Aguilar Mena <address@hidden>
Commit: Jimmy Aguilar Mena <address@hidden>
swiper.el: Extra condition to recenter in terminal
---
swiper.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/swiper.el b/swiper.el
index 83853a1..990086d 100644
--- a/swiper.el
+++ b/swiper.el
@@ -809,7 +809,8 @@ Matched candidates should have `swiper-invocation-face'."
(setq swiper--current-match-start (match-beginning 0))))
(isearch-range-invisible (line-beginning-position)
(line-end-position))
- (when (and (display-graphic-p)
+ (when (and (or (display-graphic-p)
+ (not recenter-redisplay))
(or
(< (point) (window-start))
(> (point) (window-end (ivy-state-window ivy-last)
t))))
@@ -818,12 +819,14 @@ Matched candidates should have `swiper-invocation-face'."
(swiper--add-overlays
re
(max
- (if (display-graphic-p)
+ (if (or (display-graphic-p)
+ (not recenter-redisplay))
(window-start)
(line-beginning-position (- (window-height))))
swiper--point-min)
(min
- (if (display-graphic-p)
+ (if (or (display-graphic-p)
+ (not recenter-redisplay))
(window-end (selected-window) t)
(line-end-position (window-height)))
swiper--point-max))))))))
@@ -948,7 +951,9 @@ the face, window and priority of the overlay."
(swiper--ensure-visible)
(cond (swiper-action-recenter
(recenter))
- ((and swiper--current-window-start (display-graphic-p))
+ ((and swiper--current-window-start
+ (or (display-graphic-p)
+ (not recenter-redisplay)))
(set-window-start (selected-window)
swiper--current-window-start)))
(when (/= (point) swiper--opoint)
(unless (and transient-mark-mode mark-active)
- [elpa] master c1ff0d6 228/399: ivy.el: Fix compiler warning, (continued)
- [elpa] master c1ff0d6 228/399: ivy.el: Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 6ec1126 225/399: ivy.el (ivy-help): Set org-hide-emphasis-markers, Oleh Krehel, 2019/07/20
- [elpa] master cc56ec0 231/399: swiper.el (swiper-isearch-format-function): Add, Oleh Krehel, 2019/07/20
- [elpa] master 6fd1620 235/399: swiper.el (swiper--recenter-p): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 1d08b29 233/399: swiper.el (swiper-isearch): Ensure font lock, Oleh Krehel, 2019/07/20
- [elpa] master b49f17f 224/399: counsel.el (counsel-ag-function): Add dynamic case folding, Oleh Krehel, 2019/07/20
- [elpa] master e9f0772 218/399: ivy-test.el (counsel-find-file-with-dollars): Adjust, Oleh Krehel, 2019/07/20
- [elpa] master eee9716 236/399: Add open in dired action to counsel-file-jump, Oleh Krehel, 2019/07/20
- [elpa] master fb64ea3 237/399: swiper.el (swiper-mc): Works for swiper-isearch, Oleh Krehel, 2019/07/20
- [elpa] master 39a9e94 232/399: swiper.el (swiper-isearch-current-match): Add, Oleh Krehel, 2019/07/20
- [elpa] master b7574fe 234/399: swiper.el: Extra condition to recenter in terminal,
Oleh Krehel <=
- [elpa] master 10755b2 239/399: swiper.el (swiper-isearch-toggle): Add, Oleh Krehel, 2019/07/20
- [elpa] master 38f8e45 242/399: swiper.el (swiper-isearch-toggle): Fix candidate jump in toggle, Oleh Krehel, 2019/07/20
- [elpa] master d9d6064 241/399: ivy.el (ivy-completion-in-region-action): Obey :exit-function, Oleh Krehel, 2019/07/20
- [elpa] master 6075a73 243/399: swiper.el (swiper--add-overlays): Reuse swiper--add-overlay, Oleh Krehel, 2019/07/20
- [elpa] master 687aae2 246/399: swiper.el (swiper-query-replace): Check for empty input, Oleh Krehel, 2019/07/20
- [elpa] master 8df253a 249/399: swiper.el (swiper--isearch-same-line-p): Add, Oleh Krehel, 2019/07/20
- [elpa] master 773ac65 245/399: swiper.el (swiper--cleanup): Re-use lazy-highlight-cleanup, Oleh Krehel, 2019/07/20
- [elpa] master 815f094 252/399: swiper.el (swiper--add-line-overlay): Extract, Oleh Krehel, 2019/07/20
- [elpa] master eb1e636 253/399: swiper.el (swiper--add-cursor-overlay): Display only in current window, Oleh Krehel, 2019/07/20
- [elpa] master 7dc1445 256/399: swiper.el (swiper-isearch): Use the same faces in the minibuffer, Oleh Krehel, 2019/07/20