diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-23 09:59:58 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-23 09:59:58 -0700 |
| commit | 265ff670c8545a6ebaba7c13d946fc3c70eef36f (patch) | |
| tree | 8ca857bf139dad08f91e6d0e5206ae47e007151a | |
| parent | 14e28a8a4d6d13275564561ddca805e7ac3d7aa0 (diff) | |
| parent | 44f2c59a612ec5d10e9bd74d7194524eb1c5c7e2 (diff) | |
| download | mruby-265ff670c8545a6ebaba7c13d946fc3c70eef36f.tar.gz mruby-265ff670c8545a6ebaba7c13d946fc3c70eef36f.zip | |
Merge pull request #187 from thecodeshop/mirb-exit
Teach mirb another way to quit
| -rw-r--r-- | tools/mirb/mirb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index 459923768..59e5046cb 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -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; |
