Commit 2f5ce7ed authored by Matan Ziv-Av's avatar Matan Ziv-Av
Browse files

Remove block of code that should not be there, and should do nothing.

It does something, actually, so fix a bug in OSC 1337 state machine: we start the machine on the first character, so process the character immediately after starting the machine.
parent 7b919ec0
Pipeline #159698 passed with stage
in 4 minutes and 27 seconds
......@@ -478,28 +478,8 @@ void Vt102Emulation::receiveChars(const QVector<uint> &chars)
if (tokenState == -1) {
tokenStateChange = "1337;File=:";
tokenState = 0;
} else if (tokenState >= 0) {
if ((uint)tokenStateChange[tokenState] == s[p - 1]) {
tokenState++;
tokenPos = p;
if ((uint)tokenState == strlen(tokenStateChange)) {
tokenState = -2;
tokenData.clear();
}
continue;
}
} else if (tokenState == -2) {
if (p - tokenPos == 4) {
tokenData.append(QByteArray::fromBase64(QString::fromUcs4(&tokenBuffer[tokenPos], 4).toLocal8Bit()));
tokenBufferPos -= 4;
continue;
}
}
// Special case: Session::Wallpaper is a long escape sequence
if (tokenState == -1) {
tokenStateChange = "114502;,,";
tokenState = 0;
} else if (tokenState >= 0) {
if (tokenState >= 0) {
if ((uint)tokenStateChange[tokenState] == s[p - 1]) {
tokenState++;
tokenPos = p;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment