From bb782ad8ef26fd00453a3747854ad0bcbdcacf67 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 22 May 2016 12:45:58 +0200 Subject: [PATCH] Find file: fix directory search order to be depth-first again. This matches the pre-glib implementation, and is way more natural. Signed-off-by: Andrew Borodin --- 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 9fc2609f7..f89fb8244 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -873,7 +873,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.11.4.GIT