emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra dd8f519 206/395: Fix ivy-completion-in-region


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra dd8f519 206/395: Fix ivy-completion-in-region return value
Date: Thu, 25 Feb 2021 08:32:03 -0500 (EST)

branch: externals/ivy-hydra
commit dd8f519cf15cbce66e727ccf3e8d8d3e2a6bd515
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    Fix ivy-completion-in-region return value
    
    ivy.el (ivy-completion-in-region): Return non-nil on valid
    completion, even if there was only a single candidate, as per the
    docstring of completion-in-region.
    
    Fixes #2521
---
 ivy.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 9360857..343a3b5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2713,8 +2713,10 @@ See `completion-in-region' for further information."
                                      (goto-char ivy-completion-beg)
                                      (when initial
                                        (insert initial))))
-                         :caller 'ivy-completion-in-region)
-               t))))))
+                         :caller 'ivy-completion-in-region)))
+           ;; Return value should be non-nil on valid completion;
+           ;; see `completion-in-region'.
+           t))))
 
 (defun ivy-completion-in-region-prompt ()
   "Prompt function for `ivy-completion-in-region'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]