diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-19 23:36:39 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-20 23:31:05 -0700 |
commit | bf4937bc910db2944dc50edd67bbd545e76821e2 (patch) | |
tree | c865a9d8e218b42945ec4672d106eb45b67971e7 /src/fzy.c | |
parent | 2c802e23845a5320cfcfcec13d229c9b938698a8 (diff) |
Return exit code from run
Diffstat (limited to 'src/fzy.c')
-rw-r--r-- | src/fzy.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -13,6 +13,8 @@ #include "../config.h" int main(int argc, char *argv[]) { + int ret = 0; + options_t options; options_parse(&options, argc, argv); @@ -47,10 +49,10 @@ int main(int argc, char *argv[]) { tty_interface_t tty_interface; tty_interface_init(&tty_interface, &tty, &choices, &options); - tty_interface_run(&tty_interface); + ret = tty_interface_run(&tty_interface); } choices_destroy(&choices); - return 0; + return ret; } |