Teach mirb another way to quit

This commit is contained in:
Jon
2012-05-23 12:17:42 -04:00
parent 91b4929697
commit 44f2c59a61
+2 -1
View File
@@ -162,7 +162,8 @@ main(void)
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) {
/* cancel the current block and reset */
code_block_open = FALSE;