mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Minor reformat
This commit is contained in:
parent
7837cc277f
commit
1a8f9ee459
|
@ -6576,7 +6576,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
/* Now we are in path list mode */
|
/* Now we are in path list mode */
|
||||||
if (!isatty(STDIN_FILENO)) {
|
if (!isatty(STDIN_FILENO)) {
|
||||||
|
|
||||||
/* This is the same as g_listpath */
|
/* This is the same as g_listpath */
|
||||||
initpath = load_input();
|
initpath = load_input();
|
||||||
if (!initpath)
|
if (!initpath)
|
||||||
|
@ -6585,7 +6584,6 @@ int main(int argc, char *argv[])
|
||||||
/* We return to tty */
|
/* We return to tty */
|
||||||
dup2(STDOUT_FILENO, STDIN_FILENO);
|
dup2(STDOUT_FILENO, STDIN_FILENO);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
home = getenv("HOME");
|
home = getenv("HOME");
|
||||||
|
@ -6614,9 +6612,8 @@ int main(int argc, char *argv[])
|
||||||
return _FAILURE;
|
return _FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (initpath) {
|
if (!initpath) {
|
||||||
/* NOP */
|
if (arg) { /* Open a bookmark directly */
|
||||||
} else if (arg) { /* Open a bookmark directly */
|
|
||||||
if (!arg[1]) /* Bookmarks keys are single char */
|
if (!arg[1]) /* Bookmarks keys are single char */
|
||||||
initpath = get_kv_val(bookmark, NULL, *arg, BM_MAX, TRUE);
|
initpath = get_kv_val(bookmark, NULL, *arg, BM_MAX, TRUE);
|
||||||
|
|
||||||
|
@ -6658,6 +6655,7 @@ int main(int argc, char *argv[])
|
||||||
return _SUCCESS;
|
return _SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Set archive handling (enveditor used as tmp var) */
|
/* Set archive handling (enveditor used as tmp var) */
|
||||||
enveditor = getenv(env_cfg[NNN_ARCHIVE]);
|
enveditor = getenv(env_cfg[NNN_ARCHIVE]);
|
||||||
|
|
Loading…
Reference in a new issue