fix(textarea): correctly trim incoming paste

This commit is contained in:
Christian Muehlhaeuser
2024-01-28 12:11:46 -05:00
committed by Maas Lalani
parent fc18779a6a
commit d98bf9db0a
+1 -1
View File
@@ -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]
}
}