mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-07 01:09:45 +02:00
Fixed typo
This commit is contained in:
@ -30,7 +30,7 @@ func (gui *Gui) handleCreatePatchOptionsMenu() error {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Label: "Copy patch to clipboard",
|
Label: "Copy patch to clipboard",
|
||||||
OnPress: func() error { return gui.copyPatchToClipbaord() },
|
OnPress: func() error { return gui.copyPatchToClipboard() },
|
||||||
Key: 'y',
|
Key: 'y',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ func (gui *Gui) handleApplyPatch(reverse bool) error {
|
|||||||
return gui.c.Refresh(types.RefreshOptions{Mode: types.ASYNC})
|
return gui.c.Refresh(types.RefreshOptions{Mode: types.ASYNC})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) copyPatchToClipbaord() error {
|
func (gui *Gui) copyPatchToClipboard() error {
|
||||||
patch := gui.git.Patch.PatchManager.RenderAggregatedPatchColored(true)
|
patch := gui.git.Patch.PatchManager.RenderAggregatedPatchColored(true)
|
||||||
|
|
||||||
gui.c.LogAction(gui.c.Tr.Actions.CopyPatchToClipboard)
|
gui.c.LogAction(gui.c.Tr.Actions.CopyPatchToClipboard)
|
||||||
|
Reference in New Issue
Block a user