From be667682f09652a32e0c5c9bb12c20caa6571349 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 26 Jul 2023 11:29:43 +0200 Subject: Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes --- pkg/gui/controllers/commits_files_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/gui/controllers/commits_files_controller.go') diff --git a/pkg/gui/controllers/commits_files_controller.go b/pkg/gui/controllers/commits_files_controller.go index a1cd6a9ca..c82a051f4 100644 --- a/pkg/gui/controllers/commits_files_controller.go +++ b/pkg/gui/controllers/commits_files_controller.go @@ -114,7 +114,7 @@ func (self *CommitFilesController) GetOnRenderToMain() func() error { from, reverse := self.c.Modes().Diffing.GetFromAndReverseArgsForDiff(ref.ParentRefName()) cmdObj := self.c.Git().WorkingTree.ShowFileDiffCmdObj( - from, to, reverse, node.GetPath(), false, self.c.State().GetIgnoreWhitespaceInDiffView(), + from, to, reverse, node.GetPath(), false, self.c.GetAppState().IgnoreWhitespaceInDiffView, ) task := types.NewRunPtyTask(cmdObj.GetCmd()) -- cgit v1.2.3