Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Feb 5, 2025
1 parent f00f7af commit ae64635
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/dired/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,7 @@ Browser.setup = function(state)
local search_path = PathOps.getSearchPath(state)
local new_path = vim.fs.joinpath(current, name)

if
not PathOps.isDirectory(search_path) and not PathOps.isFile(search_path)
-- and new_path:match('[^' .. SEPARATOR .. ']+%.[^' .. SEPARATOR .. ']+$')
then
if not PathOps.isDirectory(search_path) and not PathOps.isFile(search_path) then
vim.ui.input({
prompt = 'Create path and file: ' .. search_path .. '? (y/n): ',
}, function(input)
Expand Down

0 comments on commit ae64635

Please sign in to comment.