summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-01-11 18:23:35 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-01-12 10:10:56 +1100
commit282f08df36eb2939d1a1caf12457680b38089e0a (patch)
treeec468e4ba77b30025aa72e7a7d185a45a8735cf5 /pkg/gui/gui.go
parentd647a96ed55e134f1464878be8d0be3a464d996f (diff)
lazyload commits
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 9bfeae6c4..2bdb66e0f 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -128,6 +128,7 @@ type tagsPanelState struct {
type commitPanelState struct {
SelectedLine int
SpecificDiffMode bool
+ LimitCommits bool
}
type reflogCommitPanelState struct {
@@ -212,7 +213,7 @@ func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *comma
Remotes: &remotePanelState{SelectedLine: 0},
RemoteBranches: &remoteBranchesState{SelectedLine: -1},
Tags: &tagsPanelState{SelectedLine: -1},
- Commits: &commitPanelState{SelectedLine: -1},
+ Commits: &commitPanelState{SelectedLine: -1, LimitCommits: true},
ReflogCommits: &reflogCommitPanelState{SelectedLine: 0}, // TODO: might need to make -1
CommitFiles: &commitFilesPanelState{SelectedLine: -1},
Stash: &stashPanelState{SelectedLine: -1},