mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
parent
d2277a376a
commit
8be0f9c529
1 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/atotto/clipboard"
|
||||
"github.com/go-errors/errors"
|
||||
"github.com/layeh/gopher-luar"
|
||||
"github.com/mattn/go-isatty"
|
||||
|
@ -275,6 +276,16 @@ func main() {
|
|||
case event = <-events:
|
||||
}
|
||||
|
||||
switch e := event.(type) {
|
||||
case *tcell.EventMouse:
|
||||
_, h := screen.Size()
|
||||
_, y := e.Position()
|
||||
if y == h-1 {
|
||||
clipboard.WriteAll(messenger.message)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
if TabbarHandleMouseEvent(event) {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue