We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9fb648 commit 0fc5032Copy full SHA for 0fc5032
lua/nvim-tree/marks/bulk-move.lua
@@ -18,10 +18,10 @@ function M.bulk_move()
18
local node_at_cursor = lib.get_node_at_cursor()
19
local default_path = core.get_cwd()
20
21
- if node_at_cursor and node_at_cursor.type ~= "directory" then
22
- default_path = node_at_cursor.parent.absolute_path
23
- elseif node_at_cursor then
+ if node_at_cursor and node_at_cursor.type == "directory" then
24
default_path = node_at_cursor.absolute_path
+ elseif node_at_cursor and node_at_cursor.parent then
+ default_path = node_at_cursor.parent.absolute_path
25
end
26
27
local input_opts = {
0 commit comments