Skip to content

Conversation

@niten94
Copy link
Contributor

@niten94 niten94 commented Dec 17, 2025

This stops the first argument being split and joined, since the split is already by the command parser. Small details are provided in the commit message.

Fixes #1133

"Split(args[0])" has been performed since "open" was added[1], but it
may had been left by accident. It's unlikely desired when using the
command prompt, and doesn't seem to have been added once to commands
such as "vsplit" [2] which were implemented days before.

[1]: 5825353
[2]: 541daf2
Copy link
Contributor

@Andriamanitra Andriamanitra left a comment

Choose a reason for hiding this comment

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

I agree it looks like the code was left there by accident. I can't think of any use case where it would be useful. The old behavior has some weird consequences like open "a'b" not working because of an "unterminated single-quoted string", and open "a b" opening a b (with only one space!). With this change opening quoted files works more like one would expect.

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.

Backslashes in paths to open command (ctrl+o) are ignored

3 participants