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:
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 New Issue
Block a user