mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-22 08:47:15 +09:00
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user