mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
don't panic
This commit is contained in:
parent
f3c87bde88
commit
fcf916d138
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue