mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 14:22:58 +03:00
fix(textarea): paste (#250)
This commit is contained in:
parent
d3aed22a41
commit
b2b7040ccf
@ -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
|
// Reset blink state if necessary and run overflow checks
|
||||||
m.SetCursor(m.col + len(paste))
|
m.SetCursor(m.col + len(paste))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user