From 3a34cf9cbffae162ac0727c02fa43c189cd0c454 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 2 Apr 2023 12:17:49 -0400 Subject: fix ^C --- interactive.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'interactive.c') diff --git a/interactive.c b/interactive.c index 545a52d..239c001 100644 --- a/interactive.c +++ b/interactive.c @@ -39,6 +39,10 @@ int sh_interactive(void) return 0; } + if (strlen(ed.cur->buf) == 0) { + continue; + } + struct command *command = sh_parse(ed.cur->buf); if (command) { sh_execute(command); -- cgit v1.2.1