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

Foreground color of selected word - Visibility issue #77

Open
ckm2k1 opened this issue May 12, 2018 · 0 comments
Open

Foreground color of selected word - Visibility issue #77

ckm2k1 opened this issue May 12, 2018 · 0 comments

Comments

@ckm2k1
Copy link

ckm2k1 commented May 12, 2018

image

With the latest sublime changes to color schemes and how the default coloring works, you can see in the image the word selected using something like cmd+d or a plain selection, uses black foreground text by default which makes it really hard to see the selected word.

I've made a tiny patch in word_highlight.py to sort this out. I'm not sure it'll be a good solution for everyone, but it essentially fixes the issue to behave like it did before the recent sublime update.

The fix simply drops any selections from the list of regions found by find_regions().
word_highlight.py:237, replace return regions with:

return [region for region in regions if not view.sel().contains(region)]

The result:
image

I can make a PR if this is an acceptable solution.

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