Skip to content
Snippets Groups Projects
Commit 884fa9d0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix parse_input_sequence() on unhandled mouse events

The API was changed after the mouse support was tested, and mouse
support wasn't updated correctly.

Fixes #900
parent da9485cf
Branches
No related tags found
No related merge requests found
......@@ -1196,9 +1196,15 @@ bool ANSI_Terminal::parse_input_sequence(char& ch, int mode) {
if (ansi.ansi_sequence[2] == '<') {
switch (ansi.ansi_final_byte) {
case 'm':
return handle_SGR_mouse_sequence(ch, ansi, true);
if (handle_SGR_mouse_sequence(ch, ansi, true))
return true;
ch = 0;
return false;
case 'M':
return handle_SGR_mouse_sequence(ch, ansi, false);
if (handle_SGR_mouse_sequence(ch, ansi, false))
return true;
ch = 0;
return false;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment