[PATCH] fix directory search order to be depth-first again
Oswald Buddenhagen <[email protected]> Sun, 22 May 2016 12:45:58 +0200
| Newsgroups | gmane.comp.gnome.apps.mc.devel |
|---|---|
| Message-ID | <[email protected]> |
this matches the pre-glib implementation, and is way more natural.
---
src/filemanager/find.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/filemanager/find.c b/src/filemanager/find.c
index e8719c9..2f5db3f 100644
--- a/src/filemanager/find.c
+++ b/src/filemanager/find.c
@@ -871,7 +871,7 @@ push_directory (vfs_path_t * dir)
static inline vfs_path_t *
pop_directory (void)
{
- return (vfs_path_t *) g_queue_pop_tail (&dir_queue);
+ return (vfs_path_t *) g_queue_pop_head (&dir_queue);
}
/* --------------------------------------------------------------------------------------------- */
--
2.8.3.1.g1cc7b6a
_______________________________________________
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel