Support tcell EventPaste

This commit is contained in:
Zachary Yedidia 2019-12-29 13:45:08 -05:00
parent 1b73abcfd0
commit cd6765673f

View file

@ -268,6 +268,9 @@ func (h *BufPane) HandleEvent(event tcell.Event) {
esc: e.EscSeq(),
}
h.DoKeyEvent(re)
case *tcell.EventPaste:
h.paste(e.Text())
h.Relocate()
case *tcell.EventKey:
ke := KeyEvent{
code: e.Key(),