diff --git a/internal/diff/diff.go b/internal/diff/diff.go index 9e5e8ae43a31f7df945befca3f505563d0e67919..589d17f232f92f73d28900c1b5bc606ee8a6f822 100644 --- a/internal/diff/diff.go +++ b/internal/diff/diff.go @@ -232,10 +232,7 @@ func HighlightIntralineChanges(h *Hunk) { for i := 0; i < len(h.Lines); i++ { // Look for removed line followed by added line - if i+1 < len(h.Lines) && - h.Lines[i].Kind == LineRemoved && - h.Lines[i+1].Kind == LineAdded { - + if i+1 < len(h.Lines) && h.Lines[i].Kind == LineRemoved && h.Lines[i+1].Kind == LineAdded { oldLine := h.Lines[i] newLine := h.Lines[i+1] diff --git a/internal/llm/provider/gemini.go b/internal/llm/provider/gemini.go index ebc3611994045ab8bf1bc00c37ab5e24416998a3..96cf02a8b311bb5fa536394452fe9cb05713faaa 100644 --- a/internal/llm/provider/gemini.go +++ b/internal/llm/provider/gemini.go @@ -365,7 +365,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t eventChan <- ProviderEvent{Type: EventContentStop} if finalResp != nil { - finishReason := message.FinishReasonEndTurn if len(finalResp.Candidates) > 0 { finishReason = g.finishReason(finalResp.Candidates[0].FinishReason) @@ -384,7 +383,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t } return } - } }() diff --git a/internal/lsp/watcher/watcher.go b/internal/lsp/watcher/watcher.go index fd7e04837185edafe2372c0f926ec55f8ec95001..1b68dc68df719d2128bfb1fe04028115a14e51b0 100644 --- a/internal/lsp/watcher/watcher.go +++ b/internal/lsp/watcher/watcher.go @@ -401,7 +401,6 @@ func (w *WorkspaceWatcher) WatchWorkspace(ctx context.Context, workspacePath str "watched", matched, "kind", kind, ) - } // Check if this path should be watched according to server registrations diff --git a/internal/message/message.go b/internal/message/message.go index 9c58ef202fa248804558dd0ecd027782a772edb6..6e0fd40b4946a709cf10dc55d1d422447c03a23f 100644 --- a/internal/message/message.go +++ b/internal/message/message.go @@ -274,7 +274,6 @@ func unmarshallParts(data []byte) ([]ContentPart, error) { default: return nil, fmt.Errorf("unknown part type: %s", wrapper.Type) } - } return parts, nil diff --git a/internal/tui/components/dialog/complete.go b/internal/tui/components/dialog/complete.go index 3031239882158d47da9d990df158b718de40ca37..4fbd6e3eee9338ca79f02f90e3e111cbf1339541 100644 --- a/internal/tui/components/dialog/complete.go +++ b/internal/tui/components/dialog/complete.go @@ -138,9 +138,7 @@ func (c *completionDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyPressMsg: if c.pseudoSearchTextArea.Focused() { - if !key.Matches(msg, completionDialogKeys.Complete) { - var cmd tea.Cmd c.pseudoSearchTextArea, cmd = c.pseudoSearchTextArea.Update(msg) cmds = append(cmds, cmd) diff --git a/internal/tui/tui.go b/internal/tui/tui.go index b61782b9d0e8991e4ebc383a235e8418ed3b1e55..94b8c958bfec4d546ccd642cea3ecc515d5c7931 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -457,7 +457,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } switch { - case key.Matches(msg, keys.Quit): a.showQuit = !a.showQuit if a.showHelp { @@ -580,7 +579,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { f, filepickerCmd := a.filepicker.Update(msg) a.filepicker = f.(dialog.FilepickerCmp) cmds = append(cmds, filepickerCmd) - } if a.showFilepicker { @@ -733,7 +731,6 @@ func (a appModel) View() string { appView, true, ) - } // Show compacting status overlay