We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1603991 commit 87fb215Copy full SHA for 87fb215
1 file changed
lua/dired/init.lua
@@ -1428,6 +1428,9 @@ Browser.applyChanges = function(state)
1428
local new = curtext
1429
local old_name = old:gsub(SEPARATOR .. '$', '')
1430
local new_name = new:gsub(SEPARATOR .. '$', '')
1431
+ if not new_name:find('%w') then
1432
+ return
1433
+ end
1434
1435
local old_path = vim.fs.joinpath(path, old_name)
1436
local new_path = vim.fs.joinpath(path, new_name)
0 commit comments