1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00

don't panic

This commit is contained in:
Jesse Duffield 2020-08-21 21:00:34 +10:00
parent f3c87bde88
commit fcf916d138

View File

@ -125,7 +125,11 @@ func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {
func (gui *Gui) handleCopyPatchToClipboard() error {
// TODO: test that this works
return gui.OSCommand.CopyToClipboard(
if err := gui.OSCommand.CopyToClipboard(
strings.Join(gui.GitCommand.PatchManager.RenderEachFilePatch(true), "\n"),
)
); err != nil {
return gui.surfaceError(err)
}
return nil
}