diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/aerc.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/aerc.go b/app/aerc.go index 8b5564a3..2d7ca2e9 100644 --- a/app/aerc.go +++ b/app/aerc.go @@ -399,13 +399,15 @@ func (aerc *Aerc) Event(event vaxis.Event) bool { x, y := event.Position() aerc.grid.MouseEvent(x, y, event) return true - case *tcell.EventPaste: - if event.Start() { - aerc.pasting = true - } - if event.End() { - aerc.pasting = false + case vaxis.PasteStartEvent: + aerc.pasting = true + interactive, ok := aerc.SelectedTabContent().(ui.Interactive) + if ok { + return interactive.Event(event) } + return false + case vaxis.PasteEndEvent: + aerc.pasting = false interactive, ok := aerc.SelectedTabContent().(ui.Interactive) if ok { return interactive.Event(event) |