diff options
author | Michael Davis | 2023-03-05 18:13:11 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-08 01:49:32 +0000 |
commit | 611701c36290b81c3c51ed30c49245f341a580e8 (patch) | |
tree | efe00b6d01253f1e32cf43556d55b30f798a4640 /helix-tui/src/buffer.rs | |
parent | 3d850247177f61601296fe5b1cdada8819137783 (diff) |
tui: Cache the keyboard enhancement check
Wether the host terminal supports keyboard enhancement can be cached
for the lifetime of a Helix session.
Caching this lookup prevents a potential lockup within crossterm's
event reading system where the query for the keyboard enhancement
support waits on the next keyboard event, which can happen if the
crossterm event stream is checked by `tokio::select!` in another
thread.
Diffstat (limited to 'helix-tui/src/buffer.rs')
0 files changed, 0 insertions, 0 deletions