Terminal: Decode percent encoding

Fixes: QTCREATORBUG-29254
Change-Id: I0d1712753f488dff9252d2fcf099c9aefb06ed0b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-06-06 07:59:09 +02:00
parent ebc185b1bb
commit 7b3c2c13a1

View File

@@ -85,7 +85,8 @@ void ShellIntegration::onOsc(int cmd, const VTermStringFragment &fragment)
emit currentDirChanged(FilePath::fromUserInput(value.toString()).path());
} else if (cmd == 7) {
emit currentDirChanged(FilePath::fromUserInput(d).path());
const QString decoded = QUrl::fromPercentEncoding(d.toUtf8());
emit currentDirChanged(FilePath::fromUserInput(decoded).path());
} else if (cmd == 133) {
qCDebug(integrationLog) << "OSC 133:" << data;
} else if (cmd == 633 && command.length() == 1) {