Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #677 PollEvent() returns nil when screen is suspended #687

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions console_win.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build windows
// +build windows

// Copyright 2023 The TCell Authors
// Copyright 2024 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
Expand Down Expand Up @@ -1271,5 +1271,5 @@
}

func (s *cScreen) StopQ() <-chan struct{} {
return s.stopQ
return s.quit

Check warning on line 1274 in console_win.go

View check run for this annotation

Codecov / codecov/patch

console_win.go#L1274

Added line #L1274 was not covered by tests
}
4 changes: 2 additions & 2 deletions tscreen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 The TCell Authors
// Copyright 2024 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
Expand Down Expand Up @@ -1888,7 +1888,7 @@
}

func (t *tScreen) StopQ() <-chan struct{} {
return t.stopQ
return t.quit

Check warning on line 1891 in tscreen.go

View check run for this annotation

Codecov / codecov/patch

tscreen.go#L1891

Added line #L1891 was not covered by tests
}

func (t *tScreen) EventQ() chan Event {
Expand Down
Loading