[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b1ac649 26/67: Don't recenter unless necessary
From: |
Oleh Krehel |
Subject: |
[elpa] master b1ac649 26/67: Don't recenter unless necessary |
Date: |
Sun, 22 Mar 2015 17:33:57 +0000 |
branch: master
commit b1ac6492bb75b1766064ac684cf9cf4a5a3cc626
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Don't recenter unless necessary
* swiper.el (swiper--update-input-ivy): Update.
---
swiper.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/swiper.el b/swiper.el
index 4c22eba..b39235c 100644
--- a/swiper.el
+++ b/swiper.el
@@ -241,7 +241,9 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
(when (plusp num)
(goto-char (point-min))
(forward-line (1- num))
- (recenter))
+ (unless (and (> (point) (window-start))
+ (< (point) (window-end swiper--window t)))
+ (recenter)))
(let ((ov (make-overlay
(line-beginning-position)
(1+ (line-end-position)))))
- [elpa] master eb1def0 17/67: Add initial-input optional argument, (continued)
- [elpa] master eb1def0 17/67: Add initial-input optional argument, Oleh Krehel, 2015/03/22
- [elpa] master 2f5cc11 15/67: swiper.el: Use `with-selected-window' instead of `with-current-buffer', Oleh Krehel, 2015/03/22
- [elpa] master 02065be 19/67: swiper.el: Restore original point on canceling, Oleh Krehel, 2015/03/22
- [elpa] master 6a874a4 11/67: Add `ivy' back end, Oleh Krehel, 2015/03/22
- [elpa] master f268cc8 21/67: Reveal invisible overlays, Oleh Krehel, 2015/03/22
- [elpa] master 835208a 20/67: Inherit standard faces by default, Oleh Krehel, 2015/03/22
- [elpa] master f148a94 24/67: Fix use of cl-incf, Oleh Krehel, 2015/03/22
- [elpa] master 2ed9ee2 23/67: Require delsel for `minibuffer-keyboard-quit', Oleh Krehel, 2015/03/22
- [elpa] master 1ca1660 22/67: swiper.el: Save position before last search, Oleh Krehel, 2015/03/22
- [elpa] master 02ca7a1 25/67: Add anchoring, Oleh Krehel, 2015/03/22
- [elpa] master b1ac649 26/67: Don't recenter unless necessary,
Oleh Krehel <=
- [elpa] master a07c2e4 27/67: swiper.el: Make ivy the default back end, Oleh Krehel, 2015/03/22
- [elpa] master baa9df7 30/67: Truncate candidates to window width in the minibuffer, Oleh Krehel, 2015/03/22
- [elpa] master 7c6d00d 32/67: ivy.el (ivy-read): Return immediately for less than 2 candidates, Oleh Krehel, 2015/03/22
- [elpa] master 315be36 31/67: counsel.el: Add, Oleh Krehel, 2015/03/22
- [elpa] master 0772929 29/67: Add some rudimentary history handling, Oleh Krehel, 2015/03/22
- [elpa] master 045fb60 28/67: ivy.el (ivy-previous-line): Change to `cl-decf', Oleh Krehel, 2015/03/22
- [elpa] master e1cdb29 37/67: counsel.el: Add Clojure completion at point, Oleh Krehel, 2015/03/22
- [elpa] master 7ff3dd9 35/67: Need to check value of variable, Oleh Krehel, 2015/03/22
- [elpa] master c78cc15 34/67: swiper.el: Clean up overlays better on "C-g", Oleh Krehel, 2015/03/22
- [elpa] master e7b560c 38/67: swiper.el (swiper--opoint): Fix bad defvar, Oleh Krehel, 2015/03/22