Closed itchyny closed 5 years ago
This pull request fixes rename action. With current implementation the action fails to rename directory where some file in the directory is loaded.
$ mkdir foo $ touch foo/bar $ vim foo/bar :VimFiler :echo bufnr('foo') // prints 1 because bufname(1) ==# 'foo/bar' rqux<CR> // rename foo directory, not foo/bar file
The foo directory is renamed to qux.
New qux file (not directory) is created and foo directory is not renamed.
This pull request fixes rename action. With current implementation the action fails to rename directory where some file in the directory is loaded.
Steps to reproduce
Expected behavior
The foo directory is renamed to qux.
Actual behavior
New qux file (not directory) is created and foo directory is not renamed.