diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-24 19:13:00 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 19:13:00 +1100 |
commit | 4780953cef543bf506d3dc68547280dae2d1481b (patch) | |
tree | 21211912fb3919f6ece2c6b27f3927028376e939 /pkg/gui/controllers.go | |
parent | 11bc8b87faeba22b7afac550207cf54a66801641 (diff) | |
parent | b7c61aa883a5eddc2db6147cff9d13341b0936a8 (diff) |
Merge pull request #2377 from shinhs0506/clear-staging-after-commit
Diffstat (limited to 'pkg/gui/controllers.go')
-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 80b7d9e80..4d881e586 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( |