summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-bz7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-bz b/git-bz
index ca73576..62c5461 100755
--- a/git-bz
+++ b/git-bz
@@ -941,9 +941,10 @@ def prompt(message):
def prompt_multi(message, options):
while True:
line = input(f"{message} ")
- opt = line[0].lower()
- if opt in options:
- return opt
+ if line:
+ opt = line[0].lower()
+ if opt in options:
+ return opt
def die(message):