1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

Visualize the "ignore whitespace" state in the subtitle of the diff view

This commit is contained in:
Stefan Haller
2023-05-18 15:29:37 +02:00
committed by Jesse Duffield
parent 7d4bfb6621
commit 64b2685c2d
9 changed files with 38 additions and 17 deletions

View File

@@ -126,8 +126,9 @@ func (self *CommitFilesController) GetOnRenderToMain() func() error {
return self.c.RenderToMainViews(types.RefreshMainOpts{
Pair: pair,
Main: &types.ViewUpdateOpts{
Title: self.c.Tr.Patch,
Task: task,
Title: self.c.Tr.Patch,
SubTitle: self.c.Helpers().Diff.IgnoringWhitespaceSubTitle(),
Task: task,
},
Secondary: secondaryPatchPanelUpdateOpts(self.c),
})