summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/stash_controller.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/controllers/stash_controller.go
parent7d4bfb6621163244b5467ab6e6c40571726d7c81 (diff)
Visualize the "ignore whitespace" state in the subtitle of the diff view
Diffstat (limited to 'pkg/gui/controllers/stash_controller.go')
-rw-r--r--pkg/gui/controllers/stash_controller.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/controllers/stash_controller.go b/pkg/gui/controllers/stash_controller.go
index e308abade..0dac18f15 100644
--- a/pkg/gui/controllers/stash_controller.go
+++ b/pkg/gui/controllers/stash_controller.go
@@ -74,8 +74,9 @@ func (self *StashController) GetOnRenderToMain() func() error {
return self.c.RenderToMainViews(types.RefreshMainOpts{
Pair: self.c.MainViewPairs().Normal,
Main: &types.ViewUpdateOpts{
- Title: "Stash",
- Task: task,
+ Title: "Stash",
+ SubTitle: self.c.Helpers().Diff.IgnoringWhitespaceSubTitle(),
+ Task: task,
},
})
})