Skip to content

Commit

Permalink
Ignore DLE (0x10) character wherever it is in the input - this solves…
Browse files Browse the repository at this point in the history
… a big hang that was happening when the IDE tried to upload a file
  • Loading branch information
gfwilliams committed Oct 3, 2024
1 parent 05a75e1 commit 754d379
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/jsinteractive.c
Original file line number Diff line number Diff line change
Expand Up @@ -1849,8 +1849,6 @@ void jsiHandleChar(char ch) {
inputState = IPS_NONE;
}
} else {
if (inputState == IPS_HAD_DLE && inputLineLength>0)
jsiAppendToInputLine(16); // handle case where we got DLE on its own - pass it through (needed as Gadgetbridge still sends DLE)
inputState = IPS_NONE;
if (ch == 8 || ch == 0x7F /*delete*/) {
jsiHandleDelete(true /*backspace*/);
Expand Down

0 comments on commit 754d379

Please sign in to comment.