From 4ea1241ae6c19caef61e27a317c278ca46ffd1bb Mon Sep 17 00:00:00 2001 From: tauraamui Date: Thu, 16 Oct 2025 09:57:43 +0100 Subject: [PATCH] chore(tidy): remove unused flag for scrolling history state --- internal/tui/components/chat/editor/editor.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 6053c81206b917a8f98fd7845fdbaca60099610d..9eb6b4e582e7f0cce282c1e37729e5b068435ca4 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -75,7 +75,6 @@ type editorCmp struct { isCompletionsOpen bool previouslyScrollingPromptHistory bool - scrollingPromptHistory bool promptHistoryIndex int historyCache []string } @@ -671,7 +670,6 @@ func (m *editorCmp) stepOverHistory(resolveHistoricMessages func(context.Context switch resolveDirection() { case previous: - m.scrollingPromptHistory = true return m.stepBack(messageHistory) case next: return m.stepForward(messageHistory) @@ -700,7 +698,6 @@ func (m *editorCmp) resetHistory() { m.historyCache = nil m.promptHistoryIndex = 0 m.previouslyScrollingPromptHistory = false - m.scrollingPromptHistory = false } func newTextArea() *textarea.Model {