fix(textarea): add support for bracketed-paste msg

This commit is contained in:
Ayman Bagabas
2024-10-10 17:50:59 -04:00
parent f81fd5246a
commit f4fca1b3a0
+2
View File
@@ -973,6 +973,8 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}
switch msg := msg.(type) {
case tea.PasteMsg:
m.insertRunesFromUserInput([]rune(msg))
case tea.KeyPressMsg:
switch {
case key.Matches(msg, m.KeyMap.DeleteAfterCursor):