bug: Strange behavior when using prompt_save_on_select_new_entry = false
#179
Labels
bug
Something isn't working
prompt_save_on_select_new_entry = false
#179
Did you check the docs and existing issues?
Neovim version (nvim -v)
0.9.2
Operating system/version
Arch Linux
Describe the bug
I don't know if it's actually a bug or just a strange behavior, but when I set
prompt_save_on_select_new_entry = false
any new file is created as a directory.Steps To Reproduce
prompt_save_on_select_new_entry
to falsefile1
switch back to Normal mode and hit Enter (to call actions.select infile1
)After these steps a new oil buffer is opened using
file1
as the new directory.Expected Behavior
I would expect it to create as a new file since oil by default creates a new file when using any name not ending in / (e.g.
file1
) and a new dir when using a name ending in / (e.g.dir1/
).Directory structure
file1
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: