1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

move commit files

This commit is contained in:
Jesse Duffield
2020-09-29 18:48:38 +10:00
parent 91f0b0e28f
commit f9643448a4
6 changed files with 12 additions and 13 deletions

View File

@ -2,10 +2,10 @@ package gui
import (
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/models"
)
func (gui *Gui) getSelectedCommitFile() *commands.CommitFile {
func (gui *Gui) getSelectedCommitFile() *models.CommitFile {
selectedLine := gui.State.Panels.CommitFiles.SelectedLineIdx
if selectedLine == -1 || selectedLine > len(gui.State.CommitFiles)-1 {
return nil