Closed ghost-in-the-zsh closed 1 week ago
Thanks for the reproduction recipe. I've seen this several times myself, and it always drove me nuts, but I could never figure out how it happened. With your reproduction steps it was pretty easy to figure out.
Here's a PR that fixes it for me: #3667
(In the meantime, a workaround is to press tab twice.)
Sounds great. Thanks a lot for the tool and the follow-up.
Description
When I stage a whole file and them jump into it to unstage selected chunks, the background color of the staged section turns blue. If you change which files you're looking at, their backgrounds are also blue.
Steps to Reproduce
Files - Worktrees - Submodules
<Space>
to stage all of it<Enter>
on it and move to theStaged changes
section<Space>
on some chunks to unstage themUnstaged changes
section reappears and the unstaged text's background color is blue.NOTE: See context. Not always reproducible via these steps; might be unrelated to (un)staging.
Expected behavior
Background colors don't change.
Screenshots
Version info:
Latest release (at the time of this writing):
Git:
Additional context
The above steps are just one way in which I've triggered the issue. It doesn't always get triggered. A bit more messing around between (un)staging files and/or chunks also triggered it, with the background color remaining blue in both the staged and unstaged portions.
I'm speculating that it might have something to do with the staged/unstaged sections becoming hidden/visible. A bit more messing showed that the bg colors went back to normal by causing the whole section to be split by staging/unstaging some chunks.
You'll need to play with it. I just pulled another all-nighter and can't really dig any deeper.