diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-05 22:17:49 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-06 09:12:42 +1000 |
commit | 82022615ddc25ec5bc0631894e32d8dda380eac2 (patch) | |
tree | b609c448557e23d9ce4efbd1eb1e3aee41667f70 /vendor/github.com/gdamore/tcell/v2/simulation.go | |
parent | fb395bca6eedfc44afb04ad26005a45e7b7dfea9 (diff) |
bump tcell
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/simulation.go')
-rw-r--r-- | vendor/github.com/gdamore/tcell/v2/simulation.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/simulation.go b/vendor/github.com/gdamore/tcell/v2/simulation.go index 7cb720cb5..468aeebf7 100644 --- a/vendor/github.com/gdamore/tcell/v2/simulation.go +++ b/vendor/github.com/gdamore/tcell/v2/simulation.go @@ -360,6 +360,10 @@ func (s *simscreen) PollEvent() Event { } } +func (s *simscreen) HasPendingEvent() bool { + return len(s.evch) > 0 +} + func (s *simscreen) PostEventWait(ev Event) { s.evch <- ev } |