diff options
author | Sosthène Guédon <sosthene.gued@gmail.com> | 2019-06-16 11:00:15 +0200 |
---|---|---|
committer | Sosthène Guédon <sosthene.gued@gmail.com> | 2019-06-16 11:00:15 +0200 |
commit | e6c3e7bc11f2e7bdd845ec0a89172b84b26ad7ab (patch) | |
tree | 1dddd7dbeba33c81d69909c0b8bc3c40d299c612 /src | |
parent | ea9eec41d0e26d0c892f094156ebed08bdd70b81 (diff) |
Fix history saving issue
History didn't always save due to missing parentheses in the test for
the configuration variable "nocurses"
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -463,7 +463,7 @@ void delete_structures() { int exit_app(int status) { // free history - if (! atoi((char *) get_conf_value("nocurses"))) { + if (! atoi((char *) (get_conf_value("nocurses")))) { #ifdef HISTORY_FILE if (! save_history(commandline_history, "w")) sc_error("Could not save commandline history"); |