summaryrefslogtreecommitdiffstats
path: root/pkg/gui/diff_context_size_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/diff_context_size_test.go')
-rw-r--r--pkg/gui/diff_context_size_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/diff_context_size_test.go b/pkg/gui/diff_context_size_test.go
index bab2fd553..a9b8e05bf 100644
--- a/pkg/gui/diff_context_size_test.go
+++ b/pkg/gui/diff_context_size_test.go
@@ -27,7 +27,7 @@ func setupGuiForTest(gui *Gui) {
gui.g = &gocui.Gui{}
gui.Views.Main, _ = gui.prepareView("main")
gui.Views.Secondary, _ = gui.prepareView("secondary")
- gui.GitCommand.PatchManager = &patch.PatchManager{}
+ gui.GitCommand.Patch.PatchManager = &patch.PatchManager{}
_, _ = gui.refreshLineByLinePanel(diffForTest, "", false, 11)
}
@@ -136,7 +136,7 @@ func TestDoesntIncreaseContextInDiffViewInContextWhenInPatchBuildingMode(t *test
setupGuiForTest(gui)
gui.UserConfig.Git.DiffContextSize = 2
_ = gui.pushContextDirect(gui.State.Contexts.CommitFiles)
- gui.GitCommand.PatchManager.Start("from", "to", false, false)
+ gui.GitCommand.Patch.PatchManager.Start("from", "to", false, false)
errorCount := 0
gui.PopupHandler = &TestPopupHandler{
@@ -158,7 +158,7 @@ func TestDoesntDecreaseContextInDiffViewInContextWhenInPatchBuildingMode(t *test
setupGuiForTest(gui)
gui.UserConfig.Git.DiffContextSize = 2
_ = gui.pushContextDirect(gui.State.Contexts.CommitFiles)
- gui.GitCommand.PatchManager.Start("from", "to", false, false)
+ gui.GitCommand.Patch.PatchManager.Start("from", "to", false, false)
errorCount := 0
gui.PopupHandler = &TestPopupHandler{