Minor reformat

This commit is contained in:
Arun Prakash Jana 2020-02-17 19:51:24 +05:30
parent 7837cc277f
commit 1a8f9ee459
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 38 additions and 40 deletions

View File

@ -6576,7 +6576,6 @@ int main(int argc, char *argv[])
/* Now we are in path list mode */
if (!isatty(STDIN_FILENO)) {
/* This is the same as g_listpath */
initpath = load_input();
if (!initpath)
@ -6585,7 +6584,6 @@ int main(int argc, char *argv[])
/* We return to tty */
dup2(STDOUT_FILENO, STDIN_FILENO);
}
}
home = getenv("HOME");
@ -6614,9 +6612,8 @@ int main(int argc, char *argv[])
return _FAILURE;
}
if (initpath) {
/* NOP */
} else if (arg) { /* Open a bookmark directly */
if (!initpath) {
if (arg) { /* Open a bookmark directly */
if (!arg[1]) /* Bookmarks keys are single char */
initpath = get_kv_val(bookmark, NULL, *arg, BM_MAX, TRUE);
@ -6658,6 +6655,7 @@ int main(int argc, char *argv[])
return _SUCCESS;
}
}
}
/* Set archive handling (enveditor used as tmp var) */
enveditor = getenv(env_cfg[NNN_ARCHIVE]);