diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-15 19:11:53 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-15 19:11:53 +0530 |
commit | 48e2eb45e9487c039a9714e5085eb9b32caa1f46 (patch) | |
tree | 27bdc13858cb5930c09ed2adc189519dc2fb1351 | |
parent | 58d583c629f01ec09f07d4016d6ebfc99ab951ca (diff) |
Handle ^D
-rw-r--r-- | src/bcal.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2114,6 +2114,9 @@ int main(int argc, char **argv) printf("q/double Enter -> quit, ? -> help\n"); while ((tmp = readline(prompt)) != NULL) { + if (!tmp) + exit(0); + /* Quit on double Enter */ if (tmp[0] == '\0') { if (enters == 1) { |