From 6c9926dcd8af27ed6c3d6f2ed16ae91f384c4a79 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Sun, 12 May 2024 15:46:13 +0200 Subject: [PATCH] Fix iTerm param handling bug --- main/src/emulator/TextTerm.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;