diff options
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index a6bed8f83..9853760e7 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -94,14 +94,14 @@ func (gui *Gui) updateWorkTreeState() error { gui.State.WorkingTreeState = "merging" return nil } - rebaseMode, err := gui.GitCommand.RebaseMode() + isRebasing, err := gui.GitCommand.IsInRebasingState() if err != nil { return err } - if rebaseMode != "" { + if isRebasing { gui.State.WorkingTreeState = "rebasing" - return nil + } else { + gui.State.WorkingTreeState = "normal" } - gui.State.WorkingTreeState = "normal" return nil } |