mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
centralise code for copying to clipboard
This commit is contained in:
@ -693,3 +693,12 @@ func (gui *Gui) getCurrentSideView() *gocui.View {
|
||||
|
||||
return view
|
||||
}
|
||||
|
||||
func (gui *Gui) getSideContextSelectedItem() ListItem {
|
||||
currentSideContext := gui.currentSideContext()
|
||||
if currentSideContext == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
return currentSideContext.GetSelectedItem()
|
||||
}
|
||||
|
Reference in New Issue
Block a user