From 71ff18318d60df03c6d92550204f66564f340840 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 29 Aug 2020 09:52:01 +1000 Subject: [PATCH] fast UI update when moving commits in rebase mode --- pkg/gui/commits_panel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index 950149c6e..bf2fc5360 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -318,7 +318,7 @@ func (gui *Gui) handleCommitMoveDown(g *gocui.Gui, v *gocui.View) error { return gui.surfaceError(err) } gui.State.Panels.Commits.SelectedLineIdx++ - return gui.refreshSidePanels(refreshOptions{mode: BLOCK_UI, scope: []int{COMMITS, BRANCHES}}) + return gui.refreshRebaseCommits() } return gui.WithWaitingStatus(gui.Tr.SLocalize("MovingStatus"), func() error { @@ -345,7 +345,7 @@ func (gui *Gui) handleCommitMoveUp(g *gocui.Gui, v *gocui.View) error { return gui.surfaceError(err) } gui.State.Panels.Commits.SelectedLineIdx-- - return gui.refreshSidePanels(refreshOptions{mode: BLOCK_UI, scope: []int{COMMITS, BRANCHES}}) + return gui.refreshRebaseCommits() } return gui.WithWaitingStatus(gui.Tr.SLocalize("MovingStatus"), func() error {