Skip to content

Conversation

Alonely0
Copy link

This PR fixes an issue where Helix would not correctly detect color support on Windows when run inside WSL, and optimizes color detection by using std::env::var_os() to skip unnecessary UTF-8 checks and conversions. I know that checking for WSL_DISTRO_NAME as the way to check for WSL looks kinda silly, but it is by far the most straightforward way that's supported in both WSL1 and WSL2.

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.

1 participant