diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-04 23:51:59 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 4fe512ff3a299102c2bd78bc83b8644582127aae (patch) | |
tree | 5a34eacc1c137a8c98624ba29b757c0a717cf694 /pkg/gui/patch_building_panel.go | |
parent | 4197921465a6cb67d5fdd5b63de653493a5ebd41 (diff) |
test
type safe view access
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r-- | pkg/gui/patch_building_panel.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go index 0b1635c5a..b7ff83f3c 100644 --- a/pkg/gui/patch_building_panel.go +++ b/pkg/gui/patch_building_panel.go @@ -22,10 +22,8 @@ func (gui *Gui) refreshPatchBuildingPanel(selectedLineIdx int, state *lBlPanelSt return gui.handleEscapePatchBuildingPanel() } - gui.splitMainPanel(true) - - gui.getMainView().Title = "Patch" - gui.getSecondaryView().Title = "Custom Patch" + gui.Views.Main.Title = "Patch" + gui.Views.Secondary.Title = "Custom Patch" // get diff from commit file that's currently selected node := gui.getSelectedCommitFileNode() @@ -125,7 +123,7 @@ func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts { title: "Custom Patch", noWrap: true, highlight: true, - task: gui.createRenderStringWithoutScrollTask(patch), + task: NewRenderStringWithoutScrollTask(patch), } } |