Skip to content

Commit e95bfbf

Browse files
committed
fix(api): use copy.node instead of copy.name
ref #1461
1 parent a044818 commit e95bfbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/nvim-tree-lua.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ exists.
995995
- cut
996996
- paste
997997
- print_clipboard
998-
- copy.name
998+
- copy.node
999999
- copy.absolute_path
10001000
- copy.filename
10011001
- copy.relative_path

lua/nvim-tree/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Api.fs.rename_sub = inject_node(require("nvim-tree.actions.fs.rename-file").fn(t
4040
Api.fs.cut = inject_node(require("nvim-tree.actions.fs.copy-paste").cut)
4141
Api.fs.paste = inject_node(require("nvim-tree.actions.fs.copy-paste").paste)
4242
Api.fs.print_clipboard = require("nvim-tree.actions.fs.copy-paste").print_clipboard
43-
Api.fs.copy.name = inject_node(require("nvim-tree.actions.fs.copy-paste").copy)
43+
Api.fs.copy.node = inject_node(require("nvim-tree.actions.fs.copy-paste").copy)
4444
Api.fs.copy.absolute_path = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_absolute_path)
4545
Api.fs.copy.filename = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_filename)
4646
Api.fs.copy.relative_path = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_path)

0 commit comments

Comments
 (0)