summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstk <stk@ableton.com>2023-02-15 21:15:12 +0100
committerstk <stk@ableton.com>2023-02-15 21:29:38 +0100
commit6b81e6adca1248c7a6cffc0e5567b37920133e27 (patch)
treef2c939832de88bbab5afa7ff6f64ed4774b9ea4e
parentb499eba1a8907db6ad95bec5bb0f8817145a327a (diff)
Turn highlighting off in staging/stagingSecondary views
There are two reasons for doing this: 1. The view cursor position is often out of sync with the selected line; see first commit of this branch. 2. The highlighting is already turned off when the view loses focus, and never turned back on thereafter. So just turn it off from the start then.
-rw-r--r--pkg/gui/views.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/views.go b/pkg/gui/views.go
index 5de617876..987a42b86 100644
--- a/pkg/gui/views.go
+++ b/pkg/gui/views.go
@@ -164,23 +164,23 @@ func (gui *Gui) createAllViews() error {
}
gui.Views.Staging.Title = gui.c.Tr.UnstagedChanges
- gui.Views.Staging.Highlight = true
+ gui.Views.Staging.Highlight = false
gui.Views.Staging.Wrap = true
gui.Views.StagingSecondary.Title = gui.c.Tr.StagedChanges
- gui.Views.StagingSecondary.Highlight = true
+ gui.Views.StagingSecondary.Highlight = false
gui.Views.StagingSecondary.Wrap = true
gui.Views.PatchBuilding.Title = gui.Tr.Patch
- gui.Views.PatchBuilding.Highlight = true
+ gui.Views.PatchBuilding.Highlight = false
gui.Views.PatchBuilding.Wrap = true
gui.Views.PatchBuildingSecondary.Title = gui.Tr.CustomPatch
- gui.Views.PatchBuildingSecondary.Highlight = true
+ gui.Views.PatchBuildingSecondary.Highlight = false
gui.Views.PatchBuildingSecondary.Wrap = true
gui.Views.MergeConflicts.Title = gui.c.Tr.MergeConflictsTitle
- gui.Views.MergeConflicts.Highlight = true
+ gui.Views.MergeConflicts.Highlight = false
gui.Views.MergeConflicts.Wrap = false
gui.Views.Limit.Title = gui.c.Tr.NotEnoughSpace