forked from qt-creator/qt-creator
FakeVim: Fix crash with debug build of Qt 6
915be6606ead2 in Qt base introduced an assert that triggers occasionally. This here moves the original check to the fakevim side, without changing (possibly wrong) functionality. Change-Id: I435ea53ecc0ba1a905dee2f4e3f8feb3c6dc7db3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1237,7 +1237,7 @@ public:
|
|||||||
return '\n';
|
return '\n';
|
||||||
if (m_key == Key_Escape)
|
if (m_key == Key_Escape)
|
||||||
return QChar(27);
|
return QChar(27);
|
||||||
return QChar(m_xkey);
|
return QChar(m_xkey & 0xffff); // FIXME
|
||||||
}
|
}
|
||||||
|
|
||||||
QString toString() const
|
QString toString() const
|
||||||
@@ -1254,7 +1254,7 @@ public:
|
|||||||
else if (m_xkey == '>')
|
else if (m_xkey == '>')
|
||||||
key = "<GT>";
|
key = "<GT>";
|
||||||
else
|
else
|
||||||
key = QChar(m_xkey);
|
key = QChar(m_xkey & 0xffff); // FIXME
|
||||||
}
|
}
|
||||||
|
|
||||||
bool shift = isShift();
|
bool shift = isShift();
|
||||||
|
Reference in New Issue
Block a user