fix: deal with Windows Terminal mouse move with no buttons SGR report

This commit is contained in:
Zeev Rotshtein authored and Wez Furlong committed 2025-03-19 07:14:06 -07:00
1 parent 7053748e4d
commit eb9f8604e1
1 file changed
+1
+1
View File
@@ -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
_ => {