docs: add explanitory comment

tauraamui created

Change summary

internal/tui/components/chat/editor/editor.go | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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...)
 			}