[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 2bf7317 235/395: ivy.el: ivy--index should ne
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 2bf7317 235/395: ivy.el: ivy--index should never be nil |
Date: |
Thu, 25 Feb 2021 08:32:10 -0500 (EST) |
branch: externals/ivy-hydra
commit 2bf73171f15452dec78b60e20e37e5caf0c483b4
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
ivy.el: ivy--index should never be nil
---
ivy.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/ivy.el b/ivy.el
index cdea3c0..a5215dd 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1347,7 +1347,7 @@ If the input is empty, select the previous history
element instead."
(interactive "p")
(let ((orig-index ivy--index))
(ivy-next-line arg)
- (when (and (string= ivy-text "") (eq ivy--index orig-index))
+ (when (and (string= ivy-text "") (= ivy--index orig-index))
(ivy-previous-history-element 1))))
(defun ivy-previous-line (&optional arg)
@@ -1368,7 +1368,7 @@ If the input is empty, select the previous history
element instead."
(interactive "p")
(let ((orig-index ivy--index))
(ivy-previous-line arg)
- (when (and (string= ivy-text "") (eq ivy--index orig-index))
+ (when (and (string= ivy-text "") (= ivy--index orig-index))
(ivy-previous-history-element 1))))
(defun ivy-toggle-calling ()
@@ -2752,7 +2752,8 @@ Minibuffer bindings:
preselect))
((cl-position preselect candidates :test #'equal))
((ivy--regex-p preselect)
- (cl-position preselect candidates :test #'string-match-p))))
+ (cl-position preselect candidates :test #'string-match-p))
+ (t 0)))
;;* Implementation
;;** Regex
@@ -3797,11 +3798,11 @@ CANDS are the current candidates."
(string-match-p preselect current))))
ivy--old-cands
(cl-position current cands :test #'equal))
- (funcall func re-str cands)))))
+ (funcall func re-str cands)
+ 0))))
(when (or empty (string= re-str "^"))
(ivy-set-index
- (or (ivy--preselect-index preselect cands)
- ivy--index)))))
+ (ivy--preselect-index preselect cands)))))
(defun ivy-recompute-index-swiper (_re-str cands)
"Recompute index of selected candidate when using `swiper'.
- [elpa] externals/ivy-hydra 9ccd93b 191/395: ivy-hydra.el (ivy-hydra-read-action): Work for "C-M-o", (continued)
- [elpa] externals/ivy-hydra 9ccd93b 191/395: ivy-hydra.el (ivy-hydra-read-action): Work for "C-M-o", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra bba92e0 188/395: counsel.el (counsel-file-name-filter-alist): Modify perl entry, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 64f05f4 189/395: swiper.el (swiper-font-lock-exclude): Add sieve-mode, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6f04865 185/395: ivy.el (ivy-init-fns-alist): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1b426e1 202/395: Fix byte-compilation warning in Emacs 28, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f9fa30d 211/395: More compatibility fixes, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 48e56da 305/395: Extend :type of counsel-async-command-delay, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 0eebf24 318/395: ivy.el (ivy--partial-cd-for-single-directory): Fix for ignore-order, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra edefba7 304/395: ivy-test.el (ivy-read-alist-multi-cands): Add test, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra aa47396 218/395: counsel.el (counsel-fonts): Preselect the current font, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 2bf7317 235/395: ivy.el: ivy--index should never be nil,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 33fa992 250/395: Fix swiper handling of bol regex, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6ab24b6 249/395: * ivy.el: Use with-eval-after-load, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ffa5a5f 258/395: counsel-describe-symbol: autoload, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 71f5727 261/395: counsel.el (counsel--git-grep-index): Don't error on null buffer-file-name, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 84efa3a 262/395: Ensure counsel--git-grep-index returns non-nil, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6eda8fa 254/395: Fix recent ivy-auto-shrink-minibuffer-alist typo, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b40af52 267/395: counsel.el (counsel-find-file-undo): Remap undo, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fc3252b 274/395: Don't insert ^ on aborting completion in region, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a4a22e0 294/395: ivy.el (ivy-display-style): Remove, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ee747e6 290/395: ivy.el (ivy--update-history): Use ivy-state-current for file names, Basil L. Contovounesios, 2021/02/25