diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-23 21:40:52 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-23 21:40:52 +0100 |
commit | 4e8e630085463d302ae8b5f6a0dbcec998c51efd (patch) | |
tree | 2924c8999fda5f678e67cc6eb76745f6d1291606 | |
parent | 3f7d44845dad82dc735a90122eddbb8951595ef9 (diff) | |
download | cuddles-4e8e630085463d302ae8b5f6a0dbcec998c51efd.tar.xz |
fix choose command range
-rw-r--r-- | stage3/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage3/shell.c b/stage3/shell.c index d64e5be..28de4f9 100644 --- a/stage3/shell.c +++ b/stage3/shell.c @@ -298,7 +298,7 @@ static void cmd_choose(str arg) iter = f; int chosen = rand() % choices; str line; - for (int i = 0; i < chosen; i++) + for (int i = 0; i < chosen+1; i++) line = str_walk(&iter, S("\n")); print(line); print_char('\n'); |