Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit e94e9ce

Browse files
committed
fix: reset open_directories on focus
1 parent 6593b24 commit e94e9ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/sidebar-nvim/builtin/files.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ end
194194

195195
local function focus(filename)
196196
local parent_path
197+
-- reset the open directories
198+
open_directories = {}
197199

198200
if filename == nil then
199201
filename = vim.fn.expand("%:p")

0 commit comments

Comments
 (0)