From e13db07eaccdf262322629a1477501dd6687efaa Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Tue, 4 Oct 2016 13:16:09 +0200
Subject: Fix mouse mode 1005 support
---
termo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/termo.c b/termo.c
index 953bc88..75800e6 100644
--- a/termo.c
+++ b/termo.c
@@ -1130,8 +1130,7 @@ peekkey_mouse (termo_t *tk, termo_key_t *key, size_t *nbytep)
{
uint32_t b, x, y;
- // TODO: Add some API to switch on 1005 mode support
- if (false)
+ if (tk->mouse_proto == TERMO_MOUSE_PROTO_UTF8)
{
const unsigned char *buff = tk->buffer + tk->buffstart;
size_t len = tk->buffcount;
--
cgit v1.2.3-70-g09d2