[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 04b5734 03/90: swiper.el (swiper-avy): Don't start on empt
From: |
Oleh Krehel |
Subject: |
[elpa] master 04b5734 03/90: swiper.el (swiper-avy): Don't start on empty input |
Date: |
Tue, 30 Jun 2015 07:27:56 +0000 |
branch: master
commit 04b57348d1d835220093fea091d22e77cb77240c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
swiper.el (swiper-avy): Don't start on empty input
Fixes abo-abo/avy#50
---
swiper.el | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/swiper.el b/swiper.el
index 6f98989..698e5dd 100644
--- a/swiper.el
+++ b/swiper.el
@@ -112,16 +112,17 @@
(defun swiper-avy ()
"Jump to one of the current swiper candidates."
(interactive)
- (with-selected-window (ivy-state-window ivy-last)
- (let* ((avy-all-windows nil)
- (candidates
- (avy--regex-candidates
- (ivy--regex ivy-text)))
- (avy-background nil)
- (candidate
- (avy--process candidates #'avy--overlay-post)))
- (ivy-quit-and-run
- (avy--goto candidate)))))
+ (unless (string= ivy-text "")
+ (with-selected-window (ivy-state-window ivy-last)
+ (let* ((avy-all-windows nil)
+ (candidates
+ (avy--regex-candidates
+ (ivy--regex ivy-text)))
+ (avy-background nil)
+ (candidate
+ (avy--process candidates #'avy--overlay-post)))
+ (ivy-quit-and-run
+ (avy--goto candidate))))))
(defun swiper-recenter-top-bottom (&optional arg)
"Call (`recenter-top-bottom' ARG) in `swiper--window'."
- [elpa] master updated (e8eaf1a -> 55e0188), Oleh Krehel, 2015/06/30
- [elpa] master 4a3d0be 01/90: swiper.el (swiper-avy): Use only the current window, Oleh Krehel, 2015/06/30
- [elpa] master 856e1bd 02/90: ivy.el (ivy-next-line): Fix wraparound at end of candidates, Oleh Krehel, 2015/06/30
- [elpa] master 04b5734 03/90: swiper.el (swiper-avy): Don't start on empty input,
Oleh Krehel <=
- [elpa] master 23ffd5c 04/90: swiper.el (swiper--ivy): Don't double-quote preselect, Oleh Krehel, 2015/06/30
- [elpa] master d975e1a 06/90: Avoid ensuring font lock when magit-blame-mode is active, Oleh Krehel, 2015/06/30
- [elpa] master 5fdb7de 05/90: Allow to open an Info file on the file system, Oleh Krehel, 2015/06/30
- [elpa] master f899a22 08/90: Add info lookup binding to counsel-describe-map, Oleh Krehel, 2015/06/30
- [elpa] master a0347d8 09/90: counsel.el (counsel-info-lookup-symbol): Add a require, Oleh Krehel, 2015/06/30
- [elpa] master 3256d68 07/90: Change the :matcher interface, Oleh Krehel, 2015/06/30
- [elpa] master 5f7c787 11/90: counsel.el (counsel-find-file-at-point): New defcustom, Oleh Krehel, 2015/06/30
- [elpa] master efd74b8 10/90: counsel.el (counsel-find-file): Extend `find-file', Oleh Krehel, 2015/06/30
- [elpa] master 8212110 15/90: Handle symbol-at-point better in non-Elisp buffers, Oleh Krehel, 2015/06/30
- [elpa] master fe057eb 14/90: Swiper should preserve column for empty input, Oleh Krehel, 2015/06/30