summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKReadEvalPrintLoop.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/MLKReadEvalPrintLoop.m b/MLKReadEvalPrintLoop.m
index f83ff10..2ddc5d7 100644
--- a/MLKReadEvalPrintLoop.m
+++ b/MLKReadEvalPrintLoop.m
@@ -129,6 +129,9 @@ static const char *prompt (EditLine *e) {
history (commands, &event, H_ENTER, line);
+ if (strcmp (line, ":q\n") == 0 || strncmp (line, ":q ", 3) == 0)
+ break;
+
NS_DURING
{
int i;