mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(explorer): cwd is now changed automatically, so no need to update state.
This commit is contained in:
parent
abd9e0daec
commit
5549d4e848
1 changed files with 1 additions and 1 deletions
|
@ -268,6 +268,7 @@ function State:dir()
|
|||
end
|
||||
|
||||
function State:set_cwd(cwd)
|
||||
cwd = vim.fs.normalize(cwd)
|
||||
self.cwd = cwd
|
||||
self.expanded[cwd] = true
|
||||
for k in pairs(self.expanded) do
|
||||
|
@ -435,7 +436,6 @@ M.actions = {
|
|||
explorer_cd = function(picker)
|
||||
local state = M.get_state(picker)
|
||||
vim.fn.chdir(state:dir())
|
||||
state:set_cwd(vim.fn.getcwd())
|
||||
end,
|
||||
confirm = function(picker)
|
||||
local state = M.get_state(picker)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue