Fix :edit to create file if it does not exist (VIM-266)#1617
Fix :edit to create file if it does not exist (VIM-266)#1617AndDe-gourav wants to merge 3 commits intoJetBrains:masterfrom
Conversation
|
Hi |
0bb5bc8 to
7d19ef4
Compare
|
I updated the code which uses the VfsUtil.createDirectoryIfMissing function. |
|
Did you test that by running IdeaVim with split mode? |
|
I tested it but did'nt write tests, |
|
It would be useful to have at least one test for that, especially in split-mode tests, as it is easy to break stuff in split-mode scenarios |
# Conflicts: # src/test/java/org/jetbrains/plugins/ideavim/ex/implementation/commands/EditFileCreateTest.kt # tests/split-mode-tests/src/test/kotlin/com/maddyhome/idea/vim/split/EditFileCreateSplitTest.kt
|
added normal and split mode tests |
|
@1grzyb1 does all things are correct now. |
This change makes :edit behave like Vim by creating a new file
when the specified file does not exist.
Previously, :edit returned an error if the file was missing.
Changes: