summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2021-06-01 18:18:48 -0300
committerandmarti1424 <andmarti@gmail.com>2021-06-01 18:18:48 -0300
commit8afc297a32b2eb1802fadebe2c4ab0baad9e8149 (patch)
treecdc41fbb97018b7aa1698ec50188e136c3c50ecd /src
parent33807279c41c9f4c82dcc6db62edd1eb75f18e7b (diff)
removed unneeded conditional when creating history structures
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index b072cd6..3d2456d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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