mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Minor reformat
This commit is contained in:
parent
7837cc277f
commit
1a8f9ee459
1 changed files with 38 additions and 40 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue