on main help sign in
fix: format files
commit9432b337f23d77e6dd29cf7a27f68f64b21e5661 authorRaphael Amorim <rapha850@gmail.com> dateTue 8 Jul 2025, 18:47 (1 year ago) parent82d7747
2 files changed+5−5
cmd/root.go+1−1 internal/tui/components/chat/editor/editor.go+4−4
cmd/root.go+1−1
@@ -120,7 +120,7 @@ to assist developers in writing, debugging, and understanding code directly from
120120 tea.WithAltScreen(),
121121 tea.WithKeyReleases(),
122122 tea.WithUniformKeyLayout(),
123− tea.WithMouseCellMotion(), // Use cell motion instead of all motion to reduce event flooding
123+ tea.WithMouseCellMotion(), // Use cell motion instead of all motion to reduce event flooding
124124 tea.WithFilter(tui.MouseEventFilter), // Filter mouse events based on focus state
125125 )
126126
internal/tui/components/chat/editor/editor.go+4−4
@@ -49,7 +49,7 @@ type editorCmp struct {
4949 currentQuery string
5050 completionsStartIndex int
5151 isCompletionsOpen bool
52−
52+
5353 // Debouncing for completions
5454 debounceTimer *time.Timer
5555}
@@ -153,10 +153,10 @@ func (m *editorCmp) debouncedCompletionFilter() tea.Cmd {
153153 if m.debounceTimer != nil {
154154 m.debounceTimer.Stop()
155155 }
156−
156+
157157 // Create new timer for debouncing
158158 m.debounceTimer = time.NewTimer(150 * time.Millisecond)
159−
159+
160160 return func() tea.Msg {
161161 <-m.debounceTimer.C
162162 return CompletionDebounceMsg{}
@@ -290,7 +290,7 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
290290 }
291291 }
292292 }
293−
293+
294294 m.textarea, cmd = m.textarea.Update(msg)
295295 cmds = append(cmds, cmd)
296296 return m, tea.Batch(cmds...)