From 8c7864fdf685cd6f70f2402ee06d98b648a914da Mon Sep 17 00:00:00 2001 From: Matt Low Date: Wed, 11 Dec 2024 16:01:27 +0000 Subject: [PATCH] Show edited message content immediately --- pkg/tui/views/chat/update.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tui/views/chat/update.go b/pkg/tui/views/chat/update.go index 871f1de..66878c5 100644 --- a/pkg/tui/views/chat/update.go +++ b/pkg/tui/views/chat/update.go @@ -95,6 +95,7 @@ func (m *Model) Update(msg tea.Msg) (shared.ViewModel, tea.Cmd) { if toEdit.Content != contents { toEdit.Content = contents m.setMessage(m.selectedMessage, toEdit) + m.updateContent() if m.persistence && toEdit.ID > 0 { // create clone of message with its new contents cmds = append(cmds, m.cloneMessage(toEdit, true))