From 89e3f3e2c7c8103ed6d64672c7325eadb84df49c Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 7 Sep 2024 05:07:06 +0200 Subject: [PATCH] fix(neotree): return after toggling --- lua/codemp/neo-tree/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codemp/neo-tree/commands.lua b/lua/codemp/neo-tree/commands.lua index 3b9c937..f088d0d 100644 --- a/lua/codemp/neo-tree/commands.lua +++ b/lua/codemp/neo-tree/commands.lua @@ -23,7 +23,7 @@ M.open = function(state, path, extra) if selected.type == "spacer" then return end if selected.type == "title" 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.name == "[connect]" and session.client == nil then client_manager.connect()