mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-06 13:16:16 +00:00
fix(textarea): paste (#250)
This commit is contained in:
@@ -494,6 +494,10 @@ func (m *Model) handlePaste(v string) {
|
||||
}
|
||||
}
|
||||
|
||||
// Put it all back together
|
||||
value := append(head, tail...)
|
||||
m.SetValue(string(value))
|
||||
|
||||
// Reset blink state if necessary and run overflow checks
|
||||
m.SetCursor(m.col + len(paste))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user