fix(neotree): return after toggling

This commit is contained in:
əlemi 2024-09-07 05:07:06 +02:00
parent 3260fdf196
commit 89e3f3e2c7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -23,7 +23,7 @@ M.open = function(state, path, extra)
if selected.type == "spacer" then return end if selected.type == "spacer" then return end
if selected.type == "title" then return end if selected.type == "title" then return end
if selected.type == "entry" then return end if selected.type == "entry" then return end
if selected.type == "root" then toggle(selected) end if selected.type == "root" then return toggle(selected) end
if selected.type == "button" then if selected.type == "button" then
if selected.name == "[connect]" and session.client == nil then if selected.name == "[connect]" and session.client == nil then
client_manager.connect() client_manager.connect()