From 8345a04d046e4aa7b44024d93b3eb88383f2dbb4 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 3 May 2022 23:13:49 -0400 Subject: [PATCH] Updated treeview to match convention. --- data/plugins/treeview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 444353f8..ef38105c 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -454,7 +454,7 @@ function TreeView:toggle_expand(toggle) end local hovered_dir = core.project_dir_by_name(item.dir_name) if hovered_dir and hovered_dir.files_limit then - core.update_project_subdir(hovered_dir, item.filename, item.expanded) + core.update_project_subdir(hovered_dir, item.depth == 0 and "" or item.filename, item.expanded) end end end