Save one level of indentation

This commit is contained in:
sin 2014-10-22 16:53:38 +01:00
parent 05957936f5
commit bc69021233

32
noice.c
View file

@ -577,26 +577,24 @@ nochange:
return; return;
case SEL_BACK: case SEL_BACK:
/* There is no going back */ /* There is no going back */
if (strcmp(path, "/") == 0) { if (strcmp(path, "/") == 0)
goto nochange; goto nochange;
dir = xdirname(path);
free(path);
path = dir;
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
/* Recall history */
hist = SLIST_FIRST(&histhead);
if (hist != NULL) {
cur = hist->pos;
DPRINTF_D(hist->pos);
SLIST_REMOVE_HEAD(&histhead, entry);
free(hist);
} else { } else {
dir = xdirname(path); cur = 0;
free(path);
path = dir;
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
/* Recall history */
hist = SLIST_FIRST(&histhead);
if (hist != NULL) {
cur = hist->pos;
DPRINTF_D(hist->pos);
SLIST_REMOVE_HEAD(&histhead, entry);
free(hist);
} else {
cur = 0;
}
goto out;
} }
goto out;
case SEL_GOIN: case SEL_GOIN:
/* Cannot descend in empty directories */ /* Cannot descend in empty directories */
if (n == 0) if (n == 0)