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

:Rename does not escape characters in the directory path #101

Closed
Mange opened this issue Oct 12, 2022 · 1 comment
Closed

:Rename does not escape characters in the directory path #101

Mange opened this issue Oct 12, 2022 · 1 comment

Comments

@Mange
Copy link

Mange commented Oct 12, 2022

Test case:

mkdir \$dollar.bill && touch \$dollar.bill/foo
nvim \$dollar.bill/foo
:Rename bar

Expected:

$dollar.bill/foo is renamed to $dollar.bill/bar and the buffer is opened.

Actual:

$dollar.bill/foo is renamed to .bill/bar since $dollar was treated like an environment variable.


NOTE: The prompted filename is escaped properly, i.e. renaming a foo to a $bar works. This only happens inside the directory prefix.

@tpope tpope closed this as completed in 291ef1f Oct 13, 2022
@Mange
Copy link
Author

Mange commented Oct 13, 2022

Thanks! ❤️

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

No branches or pull requests

1 participant