mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Minor reformat
This commit is contained in:
parent
b3f2e47173
commit
2fbb6ae35f
|
@ -7026,11 +7026,8 @@ static bool setup_config(void)
|
||||||
/* Set selection file path */
|
/* Set selection file path */
|
||||||
if (!g_state.picker) {
|
if (!g_state.picker) {
|
||||||
char *env_sel = xgetenv(env_cfg[NNN_SEL], NULL);
|
char *env_sel = xgetenv(env_cfg[NNN_SEL], NULL);
|
||||||
if (env_sel)
|
selpath = env_sel ? xstrdup(env_sel)
|
||||||
selpath = xstrdup(env_sel);
|
: (char *)malloc(len + 3); /* Length of "/.config/nnn/.selection" */
|
||||||
else
|
|
||||||
/* Length of "/.config/nnn/.selection" */
|
|
||||||
selpath = (char *)malloc(len + 3);
|
|
||||||
|
|
||||||
if (!selpath) {
|
if (!selpath) {
|
||||||
xerror();
|
xerror();
|
||||||
|
|
Loading…
Reference in a new issue