Skip to content

Commit f91975e

Browse files
committed
don't call methods on fake root node
1 parent 9c1c201 commit f91975e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/nvim-tree/actions/fs/clipboard.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ end
217217
---@param action ACTION
218218
---@param action_fn fun(source: string, dest: string)
219219
function Clipboard:do_paste(node, action, action_fn)
220-
node = node:last_group_node()
221220
if node.name == ".." then
222221
node = self.explorer
222+
else
223+
node = node:last_group_node()
223224
end
224225
local clip = self.data[action]
225226
if #clip == 0 then

0 commit comments

Comments
 (0)