summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-04-27 12:24:42 +0200
committerYorhel <git@yorhel.nl>2010-04-27 12:27:24 +0200
commita35f998168fd0e7bf50e998a1447e3936dd934de (patch)
tree829815b70ef5c77b8d5d5bb5c440c91c751f2f08
parent5db9c2aea11052451c7e11bf8eef73393e4a072e (diff)
Don't select first item when browsing back using parent dir
The parent directory reference is the same for all directories, so we'll have to make sure to reset its FF_BSEL flag when opening another directory.
-rw-r--r--src/dirlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dirlist.c b/src/dirlist.c
index ed1d1da..35ae634 100644
--- a/src/dirlist.c
+++ b/src/dirlist.c
@@ -193,6 +193,7 @@ void dirlist_open(struct dir *d) {
head_real = head = dirlist_sort(head);
/* set the reference to the parent dir */
+ dirlist_parent_alloc.flags &= ~FF_BSEL;
if(head->parent->parent) {
dirlist_parent = &dirlist_parent_alloc;
dirlist_parent->name = "..";