Skip to content

Commit 6c9926d

Browse files
committed
Fix iTerm param handling bug
1 parent b19d859 commit 6c9926d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main/src/emulator/TextTerm.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,12 +2007,10 @@ export class TextEmulator implements TextEmulatorApi {
20072007
this.#state = ParserState.OSC_ITERM_PAYLOAD_ESC;
20082008
break;
20092009
}
2010-
if (this.#itermParameters.appendPayloadCodePoint(codePoint)) {
2011-
break;
2012-
}
2013-
20142010
if (codePoint === CODEPOINT_BEL) {
20152011
this._executeITerm(this.#itermParameters);
2012+
} else if (this.#itermParameters.appendPayloadCodePoint(codePoint)) {
2013+
break;
20162014
}
20172015

20182016
this.#itermParameters = null;

0 commit comments

Comments
 (0)