Skip to content

Commit b7c5b6b

Browse files
committed
/restart cmd: #1
1 parent 50f2b17 commit b7c5b6b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ int main(int argc, const char **argv)
410410
if (!p || !strcmp(p, "/quit")) {
411411
printf("\n");
412412
break;
413+
} else if (p && !strcmp(p, "/restart")) {
414+
instead_done();
415+
goto restart;
413416
}
414417
rc = 1; str = NULL;
415418

0 commit comments

Comments
 (0)