aboutsummaryrefslogtreecommitdiff
path: root/giti
diff options
context:
space:
mode:
Diffstat (limited to 'giti')
-rwxr-xr-xgiti6
1 files changed, 5 insertions, 1 deletions
diff --git a/giti b/giti
index 4023c07..ec34bdf 100755
--- a/giti
+++ b/giti
@@ -60,7 +60,11 @@ def search_for_file(kind: str) -> str:
print('[%s] %s' % (i, name))
try:
- choice = int(input('Enter index: '))
+ choice = input('Enter index [0]: ')
+ if choice == "":
+ choice = 0
+ else:
+ choice = int(choice)
except TypeError:
return None
except KeyboardInterrupt: