summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-07-22 07:17:09 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-07-22 07:17:09 -0700
commitbcae92b442ab909e633a838d5f83bcf8185b2784 (patch)
treeeb99288f44e6e581bba5f6f4750fc63c24416481
parentee8eec119f224725ab5022240ebd21407a86aa21 (diff)
downloadmailscripts-bcae92b442ab909e633a838d5f83bcf8185b2784.tar.gz
don't call completing-read when there are no completions
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--mailscripts.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/mailscripts.el b/mailscripts.el
index d31223a..703f86e 100644
--- a/mailscripts.el
+++ b/mailscripts.el
@@ -213,9 +213,8 @@ git-format-patch(1)."
(nil
(user-error
"Please customize variable `mailscripts-project-library'."))))
- (branch (completing-read
- "Branch name (or leave blank to apply to current HEAD): "
- nil)))
+ (branch (read-from-minibuffer
+ "Branch name (or leave blank to apply to current HEAD): ")))
(apply f repo branch args)))
(provide 'mailscripts)