From 3e1a14200cc82b5d5f020c12607e0d6300a15dda Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Thu, 11 Aug 2022 16:46:33 -0400 Subject: [PATCH] fix(textarea): ActionChange + e should also delete end of word --- textarea/modal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textarea/modal.go b/textarea/modal.go index 81d2ac9..e48afa6 100644 --- a/textarea/modal.go +++ b/textarea/modal.go @@ -437,7 +437,7 @@ func (m *Model) normalUpdate(msg tea.Msg) tea.Cmd { return executeCmd(*m.command) case "e", "E": end := m.findWordEndRight(max(m.command.Count, 1), msg.String() == "E") - if m.command.Action == ActionDelete { + if m.command.Action == ActionDelete || m.command.Action == ActionChange { end.Col = min(end.Col+1, len(m.value[end.Row])) } m.command.Range = Range{