Skip to content

Commit 2223f87

Browse files
committed
Revert "fix: file creation in empty folder without root_folder_label"
This reverts commit 7bc7043.
1 parent 7bc7043 commit 2223f87

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lua/nvim-tree/lib.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ function M.get_node_at_cursor()
3030
return { name = ".." }
3131
end
3232

33-
local nodes_by_line = utils.get_nodes_by_line(core.get_explorer().nodes, core.get_nodes_starting_line())[line]
34-
35-
if nodes_by_line == nil and line == 1 and not view.is_root_folder_visible(core.get_cwd()) then
36-
return { name = ".." }
37-
end
38-
39-
return nodes_by_line
33+
return utils.get_nodes_by_line(core.get_explorer().nodes, core.get_nodes_starting_line())[line]
4034
end
4135

4236
---Create a sanitized partial copy of a node, populating children recursively.

0 commit comments

Comments
 (0)