Skip to content

Commit

Permalink
TerminalEmulator: fix bug in DECRQM handling
Browse files Browse the repository at this point in the history
Reported in #1752
  • Loading branch information
Grimler91 committed Sep 12, 2020
1 parent 216cc10 commit 8faa5b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ public void processCodePoint(int b) {
value = (mScreen == mAltBuffer) ? 1 : 2;
} else {
int internalBit = mapDecSetBitToInternalBit(mode);
if (internalBit == -1) {
if (internalBit != -1) {
value = isDecsetInternalBitSet(internalBit) ? 1 : 2; // 1=set, 2=reset.
} else {
Log.e(EmulatorDebug.LOG_TAG, "Got DECRQM for unrecognized private DEC mode=" + mode);
Expand Down

0 comments on commit 8faa5b2

Please sign in to comment.