mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Save one level of indentation
This commit is contained in:
parent
b39da16920
commit
1183a9428f
29
noice.c
29
noice.c
|
@ -672,22 +672,21 @@ nochange:
|
||||||
if (testopendir(tmp) == 0) {
|
if (testopendir(tmp) == 0) {
|
||||||
printwarn();
|
printwarn();
|
||||||
goto nochange;
|
goto nochange;
|
||||||
} else {
|
|
||||||
free(path);
|
|
||||||
path = xrealpath(tmp);
|
|
||||||
free(tmp);
|
|
||||||
free(filter);
|
|
||||||
filter = xstrdup(ifilter); /* Reset filter */
|
|
||||||
/* Forget history */
|
|
||||||
while (!SLIST_EMPTY(&histhead)) {
|
|
||||||
hist = SLIST_FIRST(&histhead);
|
|
||||||
SLIST_REMOVE_HEAD(&histhead, entry);
|
|
||||||
free(hist);
|
|
||||||
}
|
|
||||||
DPRINTF_S(path);
|
|
||||||
cur = 0;
|
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
|
free(path);
|
||||||
|
path = xrealpath(tmp);
|
||||||
|
free(tmp);
|
||||||
|
free(filter);
|
||||||
|
filter = xstrdup(ifilter); /* Reset filter */
|
||||||
|
/* Forget history */
|
||||||
|
while (!SLIST_EMPTY(&histhead)) {
|
||||||
|
hist = SLIST_FIRST(&histhead);
|
||||||
|
SLIST_REMOVE_HEAD(&histhead, entry);
|
||||||
|
free(hist);
|
||||||
|
}
|
||||||
|
DPRINTF_S(path);
|
||||||
|
cur = 0;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue