diff options
Diffstat (limited to 'stage3/shell.c')
-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'); |