diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-29 11:50:20 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 01ea5813a8e3b8e914332002e744e3328f55f6cd (patch) | |
tree | 5684bcf7f081c5230518394ddc732316e36674e7 /pkg/gui/diff_context_size.go | |
parent | 03b946cc8f9e94fe3fd53ac619ace2af2662aac2 (diff) |
align Gui struct with GitCommand
Diffstat (limited to 'pkg/gui/diff_context_size.go')
-rw-r--r-- | pkg/gui/diff_context_size.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/diff_context_size.go b/pkg/gui/diff_context_size.go index fdf147496..5e37c18af 100644 --- a/pkg/gui/diff_context_size.go +++ b/pkg/gui/diff_context_size.go @@ -16,7 +16,7 @@ func (gui *Gui) IncreaseContextInDiffView() error { return gui.surfaceError(err) } - gui.Config.GetUserConfig().Git.DiffContextSize = gui.Config.GetUserConfig().Git.DiffContextSize + 1 + gui.UserConfig.Git.DiffContextSize = gui.UserConfig.Git.DiffContextSize + 1 return gui.currentStaticContext().HandleRenderToMain() } @@ -24,14 +24,14 @@ func (gui *Gui) IncreaseContextInDiffView() error { } func (gui *Gui) DecreaseContextInDiffView() error { - old_size := gui.Config.GetUserConfig().Git.DiffContextSize + old_size := gui.UserConfig.Git.DiffContextSize if isShowingDiff(gui) && old_size > 1 { if err := gui.CheckCanChangeContext(); err != nil { return gui.surfaceError(err) } - gui.Config.GetUserConfig().Git.DiffContextSize = old_size - 1 + gui.UserConfig.Git.DiffContextSize = old_size - 1 return gui.currentStaticContext().HandleRenderToMain() } |