summaryrefslogtreecommitdiffstats
path: root/pkg/gui/main_panels.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-05-18 15:29:37 +0200
committerJesse Duffield <jessedduffield@gmail.com>2023-05-20 12:58:32 +1000
commit64b2685c2dfc34a5cb7f2870e06d649339cc3ccf (patch)
treedda795b927abdd65852e0376b93cf5a3d98a9a42 /pkg/gui/main_panels.go
parent7d4bfb6621163244b5467ab6e6c40571726d7c81 (diff)
Visualize the "ignore whitespace" state in the subtitle of the diff view
Diffstat (limited to 'pkg/gui/main_panels.go')
-rw-r--r--pkg/gui/main_panels.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/main_panels.go b/pkg/gui/main_panels.go
index e7c87c5e5..d3418b628 100644
--- a/pkg/gui/main_panels.go
+++ b/pkg/gui/main_panels.go
@@ -66,6 +66,8 @@ func (gui *Gui) RefreshMainView(opts *types.ViewUpdateOpts, context types.Contex
view.Title = opts.Title
}
+ view.Subtitle = opts.SubTitle
+
if err := gui.runTaskForView(view, opts.Task); err != nil {
gui.c.Log.Error(err)
return nil