summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/stash.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-08-28 13:09:55 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-09-05 13:55:30 +0200
commit7774fe0ab37bb07832ef7349a3f7c080f9d908e1 (patch)
tree3dde7e09c8f6ca80de2e0ec01b4c943c92a6d01d /pkg/commands/git_commands/stash.go
parentf7db17f7d05280d83d57f7266dbc4e9d3ba2c48a (diff)
Move diff context size from UserConfig to AppState
Diffstat (limited to 'pkg/commands/git_commands/stash.go')
-rw-r--r--pkg/commands/git_commands/stash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/stash.go b/pkg/commands/git_commands/stash.go
index 12907a6ae..fad73a472 100644
--- a/pkg/commands/git_commands/stash.go
+++ b/pkg/commands/git_commands/stash.go
@@ -85,7 +85,7 @@ func (self *StashCommands) ShowStashEntryCmdObj(index int) oscommands.ICmdObj {
Arg("-p").
Arg("--stat").
Arg(fmt.Sprintf("--color=%s", self.UserConfig.Git.Paging.ColorArg)).
- Arg(fmt.Sprintf("--unified=%d", self.UserConfig.Git.DiffContextSize)).
+ Arg(fmt.Sprintf("--unified=%d", self.AppState.DiffContextSize)).
ArgIf(self.AppState.IgnoreWhitespaceInDiffView, "--ignore-all-space").
Arg(fmt.Sprintf("stash@{%d}", index)).
ToArgv()