1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add submodules context

This commit is contained in:
Jesse Duffield
2020-09-30 08:27:23 +10:00
parent 3b93b5dde4
commit 7b4a0f20b2
14 changed files with 367 additions and 93 deletions

View File

@ -34,7 +34,8 @@ func (gui *Gui) currentDiffTerminals() []string {
switch gui.currentContext().GetKey() {
case "":
return nil
case FILES_CONTEXT_KEY:
case FILES_CONTEXT_KEY, SUBMODULES_CONTEXT_KEY:
// TODO: should we just return nil here?
return []string{""}
case COMMIT_FILES_CONTEXT_KEY:
return []string{gui.State.Panels.CommitFiles.refName}