Skip to content

Commit

Permalink
fix(textarea): correctly trim incoming paste
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli authored and maaslalani committed Jan 28, 2024
1 parent fc18779 commit d98bf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textarea/textarea.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (m *Model) insertRunesFromUserInput(runes []rune) {
// If there's not enough space to paste the whole thing cut the pasted
// runes down so they'll fit.
if availSpace < len(runes) {
runes = runes[:len(runes)-availSpace]
runes = runes[:availSpace]
}
}

Expand Down

0 comments on commit d98bf9d

Please sign in to comment.