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 hsplit and vsplit with parameter #1127

Closed
wants to merge 1 commit into from
Closed

fix hsplit and vsplit with parameter #1127

wants to merge 1 commit into from

Conversation

WindSoilder
Copy link
Contributor

closes: #1107

let id = view!(cx.editor).doc;

if let Some(path) = args.get(0) {
cx.editor.open(path.into(), Action::VerticalSplit)?;
cx.editor
.open(expand_tilde(Path::new(path)), Action::VerticalSplit)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the wrong place to fix, instead we want to expand tilde at the start of canonicalize (instead of at the end when we normalize

let path = expand_tilde(path);
)

I'll write a quick patch

@archseer
Copy link
Member

Fixed in 2b7c086

@archseer archseer closed this Nov 19, 2021
@WindSoilder WindSoilder deleted the fix_hsplit_and_vsplit branch November 19, 2021 04:53
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.

Bug: Splits across directories using ~ expansion open blank buffers
2 participants