forked from qt-creator/qt-creator
Terminal: Decode percent encoding
Fixes: QTCREATORBUG-29254 Change-Id: I0d1712753f488dff9252d2fcf099c9aefb06ed0b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -85,7 +85,8 @@ void ShellIntegration::onOsc(int cmd, const VTermStringFragment &fragment)
|
|||||||
emit currentDirChanged(FilePath::fromUserInput(value.toString()).path());
|
emit currentDirChanged(FilePath::fromUserInput(value.toString()).path());
|
||||||
|
|
||||||
} else if (cmd == 7) {
|
} 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) {
|
} else if (cmd == 133) {
|
||||||
qCDebug(integrationLog) << "OSC 133:" << data;
|
qCDebug(integrationLog) << "OSC 133:" << data;
|
||||||
} else if (cmd == 633 && command.length() == 1) {
|
} else if (cmd == 633 && command.length() == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user