From c983380123f7976ed2fc02f09b727f119d8cea51 Mon Sep 17 00:00:00 2001 From: Sabine Date: Thu, 19 Dec 2024 09:32:42 +0100 Subject: [PATCH] chore(linux): change loop for filling the vector of dk triplets --- linux/mcompile/keymap/mcompile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/mcompile/keymap/mcompile.cpp b/linux/mcompile/keymap/mcompile.cpp index 731305eea5..f8b96685b9 100644 --- a/linux/mcompile/keymap/mcompile.cpp +++ b/linux/mcompile/keymap/mcompile.cpp @@ -418,7 +418,7 @@ void KMX_ConvertDeadkey(LPKMX_KEYBOARD kbd, KMX_WORD vk_US, KMX_DWORD shift, KMX KMX_GetDeadkeys(dk_Table, deadkey, vec_deadkeys, keymap); // returns vector of [usvk, ch_out] pairs int n=0; - while (n < (int)vec_deadkeys.size()) { + while (n < (int)vec_deadkeys.size() - 2) { // Look up the ch KMX_DWORD KeyValUnderlying = (KMX_DWORD) KMX_get_KeyValUnderlying_From_KeyValUS(all_vector, vec_deadkeys[n]); KMX_TranslateDeadkeyKeyboard(kbd, dkid, KeyValUnderlying, vec_deadkeys[n + 1], vec_deadkeys[n + 2]);