Skip to content
Snippets Groups Projects
Commit a35f9981 authored by Yorhel's avatar Yorhel
Browse files

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.
parent 5db9c2ae
No related branches found
No related tags found
No related merge requests found
......@@ -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 = "..";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment