File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
lua/neo-tree/sources/filesystem Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ M.clear_filter = function(state)
2929end
3030
3131M .copy = function (state )
32- cc .copy (state , utils .wrap (refresh , state ))
32+ cc .copy (state , utils .wrap (fs . focus_destination_children , state ))
3333end
3434
3535--- Marks node as copied, so that it can be pasted somewhere else.
@@ -51,7 +51,7 @@ M.cut_to_clipboard_visual = function(state, selected_nodes)
5151end
5252
5353M .move = function (state )
54- cc .move (state , utils .wrap (refresh , state ))
54+ cc .move (state , utils .wrap (fs . focus_destination_children , state ))
5555end
5656
5757--- Pastes all items from the clipboard to the current directory.
Original file line number Diff line number Diff line change @@ -254,6 +254,10 @@ M.show_new_children = function(state, node_or_path)
254254 M .navigate (state , nil , node_or_path )
255255end
256256
257+ M .focus_destination_children = function (state , move_from , destination )
258+ return M .show_new_children (state , destination )
259+ end
260+
257261--- Configures the plugin, should be called before the plugin is used.
258262--- @param config table Configuration table containing any keys that the user
259263-- wants to change from the defaults. May be empty to accept default values.
You can’t perform that action at this time.
0 commit comments