summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-06-02 13:43:05 -0300
committerAndrés <andmarti@gmail.com>2021-06-02 13:43:05 -0300
commit2dc09da35ac9d4c9219bebeadbf77e4dbe76d955 (patch)
treeb673ba1cbf75b60c472ef3c8d004b8a49adedf58 /src
parent6959156003d4e9fff1bf0c997b7f1a1bb29214af (diff)
parent8afc297a32b2eb1802fadebe2c4ab0baad9e8149 (diff)
Merge branch 'multisheet' of https://github.com/andmarti1424/sc-im into multisheet
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