From 0ae2e48ff132e6761803061f71a4ba0931de4020 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 20 Jun 2022 12:01:33 +0200 Subject: 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 --- src/plugins/fakevim/fakevimhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/fakevim/fakevimhandler.cpp') diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp index 56980bfb2c..812bb994d0 100644 --- a/src/plugins/fakevim/fakevimhandler.cpp +++ b/src/plugins/fakevim/fakevimhandler.cpp @@ -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 = ""; else - key = QChar(m_xkey); + key = QChar(m_xkey & 0xffff); // FIXME } bool shift = isShift(); -- cgit v1.2.3