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 5958fd5 commit 51d1af4Copy full SHA for 51d1af4
lua/nvim-tree/utils.lua
@@ -143,8 +143,8 @@ function M.rename_loaded_buffers(old_path, new_path)
143
local buf_name = a.nvim_buf_get_name(buf)
144
local exact_match = buf_name == old_path
145
local child_match = (
146
- buf_name:sub(1, #old_path) == old_path and buf_name:sub(#old_path + 1, #old_path + 1) == path_separator
147
- )
+ buf_name:sub(1, #old_path) == old_path and buf_name:sub(#old_path + 1, #old_path + 1) == path_separator
+ )
148
if exact_match or child_match then
149
a.nvim_buf_set_name(buf, new_path .. buf_name:sub(#old_path + 1))
150
-- to avoid the 'overwrite existing file' error message on write for
0 commit comments