summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/commits_files_controller.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-07-26 11:29:43 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-07-31 11:41:55 +0200
commitbe667682f09652a32e0c5c9bb12c20caa6571349 (patch)
tree1ee285e319e2b89bad399a944aa04f9ac3b5722f /pkg/gui/controllers/commits_files_controller.go
parent045bce5dfc5c59215f591a0dca2b95ef036a1e68 (diff)
Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes
Diffstat (limited to 'pkg/gui/controllers/commits_files_controller.go')
-rw-r--r--pkg/gui/controllers/commits_files_controller.go2
1 files changed, 1 insertions, 1 deletions
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())