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:
hjk
2022-06-20 12:01:33 +02:00
parent c3dcc1ee38
commit 0ae2e48ff1

View File

@@ -1237,7 +1237,7 @@ public:
return '\n';
if (m_key == Key_Escape)
return QChar(27);
return QChar(m_xkey);
return QChar(m_xkey & 0xffff); // FIXME
}
QString toString() const
@@ -1254,7 +1254,7 @@ public:
else if (m_xkey == '>')
key = "<GT>";
else
key = QChar(m_xkey);
key = QChar(m_xkey & 0xffff); // FIXME
}
bool shift = isShift();