diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-06-29 11:27:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 11:27:26 +0200 |
commit | 5dbdbd8425b0319c4c78bc2453c10f8bf988f252 (patch) | |
tree | aa859031d99a320f46bd1c5ff18229bcc78cbcef /test/integration_new/stash/stash_including_untracked_files/expected/repo/.git_keep/git@git.beyermatthi.as:lazygit | |
parent | 696b8ba457915baea6e3ac73f22c8b994624048b (diff) | |
parent | 9b73b68f95399e90da501a0be9d751c7d893a413 (diff) |
Turn off the highlight of the suggestions panel when it loses focus (#3696)
- **PR Description**
The highlight is normally turned off in HandleFocusLost, but that's not
called when using ReplaceContext (and changing this would be a lot of
work, it seems), so turn it off manually for now.
For a moment I considered whether we want to show the new inactive
highlight when switching from suggestions to the prompt (actually this
did happen on master), but I decided against it for several reasons:
- it's not quite the right concept (the suggestions view is not the
"parent" context of the prompt),
- there's no benefit from seeing one of the suggestions selected (and
the selection would change arbitrarily when changing the filter string)
- there would be visual problems when the suggestions become empty, in
which case we would still highlight the first empty row (which you can
only see if you set the gui.theme.inactiveViewSelectedLineBgColor config
to some color). Now this could be considered a bug in the focus
management of the suggestions panel, but it doesn't seem worth fixing
this; the problem goes away by turning off the highlight.
Diffstat (limited to 'test/integration_new/stash/stash_including_untracked_files/expected/repo/.git_keep/git@git.beyermatthi.as:lazygit')
0 files changed, 0 insertions, 0 deletions