diff options
author | andmarti1424 <andmarti@gmail.com> | 2021-06-01 18:18:48 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2021-06-01 18:18:48 -0300 |
commit | 8afc297a32b2eb1802fadebe2c4ab0baad9e8149 (patch) | |
tree | cdc41fbb97018b7aa1698ec50188e136c3c50ecd | |
parent | 33807279c41c9f4c82dcc6db62edd1eb75f18e7b (diff) |
removed unneeded conditional when creating history structures
-rw-r--r-- | src/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -193,8 +193,9 @@ int main (int argc, char ** argv) { // check if version is in argv. if so, show version and quit if (get_conf_int("version")) show_version_and_quit(); - // create command line history structure + // if starting tui.. if (! get_conf_int("nocurses")) { + // create command line history structure #ifdef HISTORY_FILE commandline_history = (struct history *) create_history(':'); load_history(commandline_history, ':'); // load the command history file @@ -203,10 +204,8 @@ int main (int argc, char ** argv) { insert_history = (struct history *) create_history('='); load_history(insert_history, '='); // load the insert history file #endif - } - // initiate NCURSES if that is what is wanted - if (! get_conf_int("nocurses")) { + // and initiate NCURSES ui_start_screen(); #ifdef USECOLORS |