summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jet.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/jet.c b/jet.c
index 294b822..712269e 100644
--- a/jet.c
+++ b/jet.c
@@ -37,7 +37,8 @@ int main(int argc, char *argv[]) {
int mode = NORMAL_MODE;
- while (1) {
+ int quit = 0;
+ while (!quit) {
clear();
int x = -1, y = -1;
@@ -57,6 +58,9 @@ int main(int argc, char *argv[]) {
if (mode == NORMAL_MODE) {
switch (input) {
+ case '':
+ quit = 1;
+ break;
case 'i':
mode = INSERT_MODE;
break;