1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

remove clipboard option for now because we need a better way of doing it

This commit is contained in:
Jesse Duffield
2020-08-21 21:01:14 +10:00
parent fcf916d138
commit ce20d1b482
2 changed files with 2 additions and 20 deletions

View File

@ -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
}