From eb9f8604e10ebcc0b0b6c68d0068a4d75e61ba0a Mon Sep 17 00:00:00 2001 From: Zeev Rotshtein Date: Wed, 19 Mar 2025 01:00:20 +0200 Subject: [PATCH] fix: deal with Windows Terminal mouse move with no buttons SGR report --- termwiz/src/escape/csi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/termwiz/src/escape/csi.rs b/termwiz/src/escape/csi.rs index 810f99f1f..a411742f4 100644 --- a/termwiz/src/escape/csi.rs +++ b/termwiz/src/escape/csi.rs @@ -2220,6 +2220,7 @@ impl<'a> CSIParser<'a> { // other encodings is added and this block is likely copied and pasted // or refactored for re-use with them. ('M', 35) => MouseButton::None, // mouse motion with no buttons + ('m', 35) => MouseButton::None, // mouse motion with no buttons (in Windows Terminal) ('M', 3) => MouseButton::None, // legacy notification about button release ('m', 3) => MouseButton::None, // release+press doesn't make sense _ => {