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

Fixed installer.lua behavior when initializing fLoc and fPath on Windows #9

Merged
merged 1 commit into from
May 31, 2024

Conversation

johanmontorfano
Copy link
Contributor

When initializing fLoc and fPath on Windows, it was assumed that %USERPROFILE% ends with a backslash, which it does not. As a result, Windows users experienced issues where installing a new theme would lead to the following error:

Could not open file: C:\Users\someuserAppData\Local\...

Therefore, the modifications I made on lines 51 and 137 now create the expected path.

This fix has been tested on Neovim 0.9.5 and Windows 11. If %USERPROFILE% does end with a backslash on some PCs, it will not cause issues as both // and / are interpreted correctly on Windows.

@CWood-sdf CWood-sdf merged commit eeb3ffc into CWood-sdf:main May 31, 2024
1 check passed
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.

2 participants