diff options
author | hjk <hjk@qt.io> | 2022-06-20 12:01:33 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-06-20 12:06:13 +0000 |
commit | 0ae2e48ff132e6761803061f71a4ba0931de4020 (patch) | |
tree | 4907d8d2f4c2d1e13089387130a17677c00e85dc /src/plugins/fakevim/fakevimhandler.cpp | |
parent | c3dcc1ee38e496a6720a7c43a776ef9ed35a20be (diff) |
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>
Diffstat (limited to 'src/plugins/fakevim/fakevimhandler.cpp')
-rw-r--r-- | src/plugins/fakevim/fakevimhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "<GT>"; else - key = QChar(m_xkey); + key = QChar(m_xkey & 0xffff); // FIXME } bool shift = isShift(); |