We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5290897 commit c883df9Copy full SHA for c883df9
lua/nvim-tree/actions/fs/rename-file.lua
@@ -125,8 +125,9 @@ function M.fn(default_modifier)
125
return
126
end
127
128
- if node:is(DirectoryNode) then
129
- node = node:last_group_node()
+ local dir = node:as(DirectoryNode)
+ if dir then
130
+ node = dir:last_group_node()
131
132
if node.name == ".." then
133
0 commit comments