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

gVim incorrectly colors text when using the habamax colorscheme and comparing files #268

Open
lkintact opened this issue Oct 17, 2024 · 2 comments

Comments

@lkintact
Copy link

lkintact commented Oct 17, 2024

  1. Download these two files: 1.txt, 2.txt
  2. Run gvim.exe --clean -d 1.txt 2.txt
  3. Execute :colorscheme habamax
  4. Execute :set listchars=space:•
  5. Execute :windo set list.

Notice that all the spaces in both buffers have a gray background regardless of the region, which is wrong.

gVim: 9.1.785
OS: Windows 10 Home.

@lkintact lkintact changed the title Vim incorrectly colors text when using the habamax colorscheme and comparing files gVim incorrectly colors text when using the habamax colorscheme and comparing files Oct 17, 2024
@lkintact
Copy link
Author

I observe similar behavior with the colorschemes quiet, retrobox, sorbet and zaibatsu.

@romainl
Copy link
Collaborator

romainl commented Oct 18, 2024

Well, the interaction between highlight groups with cterm=reverse or gui=reverse and without is not always easy to manage to begin with. But some highlight groups like SpecialKey are treated by Vim a little bit differently than the others when they interact with CursorLine, for example, or all the diff* groups.

I don't think it is possible to fix this mess at the colorscheme level.

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

2 participants