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 7bc7043 commit 2223f87Copy full SHA for 2223f87
lua/nvim-tree/lib.lua
@@ -30,13 +30,7 @@ function M.get_node_at_cursor()
30
return { name = ".." }
31
end
32
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
+ return utils.get_nodes_by_line(core.get_explorer().nodes, core.get_nodes_starting_line())[line]
40
41
42
---Create a sanitized partial copy of a node, populating children recursively.
0 commit comments