Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only create new file on split when specified #8733

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

bcho
Copy link
Contributor

@bcho bcho commented Nov 19, 2023

What this PR does / why we need it:

#8698 introduced support for creating new file on split. However, the create behavior should only be used when there is a file arg specified for the split command.

command case behavior
(v)sp open new split with existing open file
(v)sp <file> open new split with the giving file path, create if needed

#8698 fixed the 2nd case, while broke the 1st case.

Which issue(s) this PR fixes

#8730

Special notes for your reviewer:

@bcho
Copy link
Contributor Author

bcho commented Nov 19, 2023

I am not sure how to proper add tests for this behavior, will try submit one in the new pr.

@bcho
Copy link
Contributor Author

bcho commented Nov 20, 2023

hi @J-Fields could you please take a look on this? Sorry for the ping, but the bug is quite annoying :(

@pimpeters
Copy link

Any ETA on when this will be merged?

@J-Fields J-Fields merged commit 6097424 into VSCodeVim:master Nov 22, 2023
2 checks passed
@J-Fields
Copy link
Member

Thanks!

@bcho bcho deleted the fix-split-new-file branch November 22, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants