Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorNinchester <5041877+ninchester@users.noreply.github.com>2021-03-20 21:51:57 +0100
committerNinchester <5041877+ninchester@users.noreply.github.com>2021-03-20 21:51:57 +0100
commit6dea24ad22a84f35b3416da3440b03768a2afefe (patch)
tree86410c69ed9f83bf8917f371a43d8c17fdc11ff0 /archinstall
parent0318125a7b70114531951da300b06f47f427b89f (diff)
Make option list 0-index based
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 25ca71f0..e7fba747 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -39,7 +39,7 @@ def print_large_list(options, padding=5, margin_bottom=0, separator=': '):
for row in range(0, (get_terminal_height()-margin_bottom)):
for column in range(row, len(options), (get_terminal_height()-margin_bottom)):
spaces = " "*(longest_line - len(options[column]))
- print(f"{str(column+1).zfill(2)}{separator}{options[column]}", end = spaces)
+ print(f"{str(column).zfill(2)}{separator}{options[column]}", end = spaces)
print()
def ask_for_superuser_account(prompt='Create a required super-user with sudo privileges: ', forced=False):