From f16f496a64bb4c7ab3ee2a688768730a13a31bb9 Mon Sep 17 00:00:00 2001 From: tauraamui Date: Thu, 4 Dec 2025 12:29:33 +0000 Subject: [PATCH] docs: add explanitory comment --- internal/tui/components/chat/editor/editor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 73ea00110b4b0bba8a6d3919b4cd5bf4ac898afc..7460efedbf1b2f6d04cb43d6d8c3a9e72dd91f46 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -330,6 +330,7 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) { cmds = append(cmds, util.CmdHandler(CloseHistoryMsg{ valueToSet: m.textarea.Value(), })) + // we want to process whatever the key press is but only after coming out of history mode cmds = append(cmds, util.CmdHandler(msg)) return m, tea.Sequence(cmds...) }