* fix(#2495): skip action if node == nil * simplify --------- Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -45,9 +45,11 @@ end
|
|||||||
local function wrap_node(f)
|
local function wrap_node(f)
|
||||||
return function(node, ...)
|
return function(node, ...)
|
||||||
node = node or require("nvim-tree.lib").get_node_at_cursor()
|
node = node or require("nvim-tree.lib").get_node_at_cursor()
|
||||||
|
if node then
|
||||||
f(node, ...)
|
f(node, ...)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
---@class ApiTreeOpenOpts
|
---@class ApiTreeOpenOpts
|
||||||
---@field path string|nil path
|
---@field path string|nil path
|
||||||
|
|||||||
Reference in New Issue
Block a user