diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 21:01:14 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | ce20d1b4824a3203611ba5a631e0b6281bcb1064 (patch) | |
tree | 11d85d66bce9a47301d4c049c806f0658804514d /pkg/gui/patch_building_panel.go | |
parent | fcf916d138fd0622b1a055e9742508e2e216ef17 (diff) |
remove clipboard option for now because we need a better way of doing it
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r-- | pkg/gui/patch_building_panel.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go index b44876f68..c39568cdf 100644 --- a/pkg/gui/patch_building_panel.go +++ b/pkg/gui/patch_building_panel.go @@ -1,8 +1,6 @@ package gui import ( - "strings" - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -121,15 +119,3 @@ func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts { return nil } - -func (gui *Gui) handleCopyPatchToClipboard() error { - // TODO: test that this works - - if err := gui.OSCommand.CopyToClipboard( - strings.Join(gui.GitCommand.PatchManager.RenderEachFilePatch(true), "\n"), - ); err != nil { - return gui.surfaceError(err) - } - - return nil -} |