mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
fix(textarea): correctly trim incoming paste
This commit is contained in:
committed by
Maas Lalani
parent
fc18779a6a
commit
d98bf9db0a
@@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user