move lib.get_node_at_cursor to Explorer

This commit is contained in:
Alexander Courtis
2024-10-21 11:34:10 +11:00
parent 0992969dc5
commit 7324fb1bf0
11 changed files with 88 additions and 87 deletions

View File

@@ -151,7 +151,7 @@ function Marks:bulk_move()
return
end
local node_at_cursor = lib.get_node_at_cursor()
local node_at_cursor = self.explorer:get_node_at_cursor()
local default_path = core.get_cwd()
if node_at_cursor and node_at_cursor:is(DirectoryNode) then
@@ -190,7 +190,7 @@ end
---@private
---@param up boolean
function Marks:navigate(up)
local node = lib.get_node_at_cursor()
local node = self.explorer:get_node_at_cursor()
if not node then
return
end