Commit 44f2c59a authored by Jon's avatar Jon

Teach mirb another way to quit

parent 91b49296
...@@ -162,7 +162,8 @@ main(void) ...@@ -162,7 +162,8 @@ main(void)
last_code_line[char_index] = '\0'; last_code_line[char_index] = '\0';
if (strcmp(last_code_line, "quit") == 0) { if ((strcmp(last_code_line, "quit") == 0) ||
(strcmp(last_code_line, "exit") == 0)) {
if (code_block_open) { if (code_block_open) {
/* cancel the current block and reset */ /* cancel the current block and reset */
code_block_open = FALSE; code_block_open = FALSE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment