branch: elpa/magit
commit 75c6fdfb11c84eebd440566380475e8fd731da07
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-notes-read-ref: Require a match
---
 lisp/magit-notes.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-notes.el b/lisp/magit-notes.el
index 04e4ea1e27c..5590b88ed45 100644
--- a/lisp/magit-notes.el
+++ b/lisp/magit-notes.el
@@ -165,7 +165,7 @@ Also see `magit-notes-merge'."
 
 (defun magit-notes-read-ref (prompt &optional _initial-input history)
   (and-let* ((ref (magit-completing-read
-                   prompt (magit-list-notes-refnames) nil nil
+                   prompt (magit-list-notes-refnames) nil t
                    (and-let* ((def (magit-get "core.notesRef")))
                      (if (string-prefix-p "refs/notes/" def)
                          (substring def 11)

Reply via email to