diff --git a/main/src/emulator/TextTerm.ts b/main/src/emulator/TextTerm.ts index 98cbd5ca..f4ffb77c 100644 --- a/main/src/emulator/TextTerm.ts +++ b/main/src/emulator/TextTerm.ts @@ -2007,12 +2007,10 @@ export class TextEmulator implements TextEmulatorApi { this.#state = ParserState.OSC_ITERM_PAYLOAD_ESC; break; } - if (this.#itermParameters.appendPayloadCodePoint(codePoint)) { - break; - } - if (codePoint === CODEPOINT_BEL) { this._executeITerm(this.#itermParameters); + } else if (this.#itermParameters.appendPayloadCodePoint(codePoint)) { + break; } this.#itermParameters = null;