Skip to content

Commit

Permalink
fix(ui): process only revset messages when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
idursun committed Feb 28, 2025
1 parent b454f31 commit 5a5165a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package ui

import (
"fmt"
"strings"

"github.com/charmbracelet/bubbles/key"
"github.com/idursun/jjui/internal/jj"
"github.com/idursun/jjui/internal/ui/helppage"
"github.com/idursun/jjui/internal/ui/operations"
"github.com/idursun/jjui/internal/ui/preview"
"github.com/idursun/jjui/internal/ui/revset"
"strings"

"github.com/idursun/jjui/internal/ui/common"
"github.com/idursun/jjui/internal/ui/diff"
Expand Down Expand Up @@ -60,9 +61,8 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}

if m.revsetModel.Editing {
if m.revsetModel, cmd = m.revsetModel.Update(msg); cmd != nil {
return m, cmd
}
m.revsetModel, cmd = m.revsetModel.Update(msg)
return m, cmd
}

var cmds []tea.Cmd
Expand Down

0 comments on commit 5a5165a

Please sign in to comment.