Skip to content

Commit 6c84fef

Browse files
authored
fix(files): set cwd correctly when revealing in split (#179)
1 parent 3050306 commit 6c84fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/manager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ M.reveal_in_split = function(source_name, callback)
409409
cwd = M.get_cwd(state)
410410
end
411411
if cwd and not utils.is_subpath(cwd, path_to_reveal) then
412-
state.path = utils.split_path(path_to_reveal)[1]
412+
state.path, _ = utils.split_path(path_to_reveal)
413413
end
414414
M.navigate(state, state.path, path_to_reveal, callback)
415415
end

0 commit comments

Comments
 (0)