Skip to content

Commit

Permalink
fix(textarea): add support for bracketed-paste msg
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 10, 2024
1 parent f81fd52 commit f4fca1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions textarea/textarea.go
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f4fca1b

Please sign in to comment.