-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cursor changes color on whitespaces and indent guides #5675
Comments
This is because you're using the reversed modifier on the cursor. |
But why aren't they working like other characters? |
Oh I see, this is happening because whitespace and indent guides are rendered on top of highlights like cursor colors in the rendering code. So the |
I'm not sure if this is related but rulers also act weirdly. recording-2023-02-13_18-55-49.mp4 |
What causes the |
This is even more problematic if you set the indent guide and the cursor to [editor.cursor-shape]
insert = "bar"
[editor.indent-guides]
render = true
character = "▏" Here the cursor at the begin of the statement Here is the cursor at the level of the indent guide at the left: |
Summary
Even if you set the cursor's foreground and the reverse modifier, it would still change its color if it was on a virtual whitespace or indent guide. Which is not expected since on normal text it stays white.
theme.toml to replicate
Reproduction Steps
I tried this:
I expected this to happen:
Whitespaces and indent guides should respect the cursor's foreground, and the cursor should stay white.
Instead, this happened:
The cursor changes its color.
Note: I use gray
▏
indent guides. And my selection bg has the same color. Which makes it hard to tell which side is the selection anchor on is if it was on the▏
. I used blue for the asciinema just to make it stand out.Helix log
Since this is a theme related problem logs wouldn't be useful. I still left it here just in case.
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
wezterm 20221119-145034-49b9839f
Helix Version
helix 22.12
The text was updated successfully, but these errors were encountered: