From a35f998168fd0e7bf50e998a1447e3936dd934de Mon Sep 17 00:00:00 2001
From: Yorhel <git@yorhel.nl>
Date: Tue, 27 Apr 2010 12:24:42 +0200
Subject: [PATCH] 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.
---
 src/dirlist.c | 1 +
 1 file changed, 1 insertion(+)

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 = "..";
-- 
GitLab