We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab258d9 commit e1fbabfCopy full SHA for e1fbabf
lua/lib/state.lua
@@ -11,6 +11,10 @@ function M.set_root_path(path)
11
ROOT_PATH = path
12
end
13
14
+function M.get_root_path()
15
+ return ROOT_PATH
16
+end
17
+
18
local Tree = {}
19
20
local IGNORE_LIST = ""
lua/tree.lua
@@ -158,6 +158,9 @@ function M.navigate_to_buffer_dir(bufname)
158
if new_path ~= '/' then
159
new_path = new_path .. '/'
160
161
+ if new_path == state.get_root_path() then
162
+ return
163
+ end
164
set_root_path(new_path)
165
init_tree()
166
0 commit comments