Fix reading clipboard internally for OSC52

This commit is contained in:
Zachary Yedidia
2020-07-04 20:54:27 -04:00
parent cf86f6848f
commit d8596919a6
7 changed files with 48 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ var tempDir string
var sim tcell.SimulationScreen
func init() {
events = make(chan tcell.Event, 8)
screen.Events = make(chan tcell.Event, 8)
}
func startup(args []string) (tcell.SimulationScreen, error) {
@@ -106,7 +106,7 @@ func handleEvent() {
e := screen.Screen.PollEvent()
screen.Unlock()
if e != nil {
events <- e
screen.Events <- e
}
DoEvent()
}