diff options
author | John Shin <shinhs0506@gmail.com> | 2023-01-18 08:14:03 -0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-20 20:13:59 +1100 |
commit | 776d8f4d2e4afff3c80a16c33ad28780e41169e6 (patch) | |
tree | a1d033af48e3d811c2060b73ad746e7583b0f221 /pkg/gui | |
parent | 6127e487dd977dc4a5c5f12fc72cc70d9d6205d1 (diff) |
refresh the staging panel on successful commit
apply formatting
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/controllers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go index d7f6647c7..790a6d98b 100644 --- a/pkg/gui/controllers.go +++ b/pkg/gui/controllers.go @@ -9,6 +9,7 @@ import ( "github.com/jesseduffield/lazygit/pkg/gui/controllers/helpers" "github.com/jesseduffield/lazygit/pkg/gui/modes/cherrypicking" "github.com/jesseduffield/lazygit/pkg/gui/services/custom_commands" + "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/snake" ) @@ -92,6 +93,9 @@ func (gui *Gui) resetControllers() { onCommitSuccess := func() { gui.State.savedCommitMessage = "" + _ = gui.c.Refresh(types.RefreshOptions{ + Scope: []types.RefreshableView{types.STAGING}, + }) } commitMessageController := controllers.NewCommitMessageController( |