From 6b81e6adca1248c7a6cffc0e5567b37920133e27 Mon Sep 17 00:00:00 2001 From: stk Date: Wed, 15 Feb 2023 21:15:12 +0100 Subject: [PATCH] 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. --- pkg/gui/views.go | 10 +++++----- 1 file 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