We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce69f3 commit 83fe371Copy full SHA for 83fe371
1 file changed
lua/dired/init.lua
@@ -1372,7 +1372,7 @@ Browser.setup = function(state)
1372
if current_buf == state.search_buf then
1373
new_path = api.nvim_buf_get_lines(0, 0, -1, false)[1]
1374
end
1375
- if current_buf == state.search_buf and #selected == 0 then
+ if current_buf == state.search_buf and (#selected == 0 or #state.entries == 0) then
1376
new_path = vim.fs.normalize(new_path)
1377
Actions.createAndEdit(state, new_path, vim.cmd.edit).fork(function(err)
1378
Notify.err(err)
0 commit comments