Merge root folder and parent navigator into one.
This commit is contained in:
committed by
Kiyan Yazdani
parent
0d8b22c1e9
commit
859be0bb76
@@ -58,7 +58,7 @@ function M.init(with_open, with_render)
|
||||
end
|
||||
|
||||
local function get_node_at_line(line)
|
||||
local index = 3
|
||||
local index = 2
|
||||
local function iter(entries)
|
||||
for _, node in ipairs(entries) do
|
||||
if index == line then
|
||||
@@ -135,9 +135,9 @@ end
|
||||
function M.set_index_and_redraw(fname)
|
||||
local i
|
||||
if M.Tree.cwd == '/' then
|
||||
i = 1
|
||||
i = 0
|
||||
else
|
||||
i = 2
|
||||
i = 1
|
||||
end
|
||||
local reload = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user