Set main views to underline hyperlinks only on mouse hover

Note that this doesn't only affect the diff views, which are the ones where we
want this, but also the status view, where the plan was to keep them underlined
always for better discoverability. We could make this configurable dynamically
(by adding another flag to ViewUpdateOpts), but actually I think it's fine this
way.
This commit is contained in:
Stefan Haller 2024-08-24 12:16:07 +02:00
parent 8d37f48744
commit 68c7f9840a

View file

@ -117,6 +117,7 @@ func (gui *Gui) createAllViews() error {
view.Title = gui.c.Tr.DiffTitle
view.Wrap = true
view.IgnoreCarriageReturns = true
view.UnderlineHyperLinksOnlyOnHover = true
}
gui.Views.Staging.Title = gui.c.Tr.UnstagedChanges