You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mcdurdin
changed the title
bug(common): nul, any, and index() have an off-by-one error in Keyman Core
bug(core): nul, any, and index() have an off-by-one error in Keyman Core
Feb 21, 2025
Two separate bugs addressed, with `index()` references and with
`context()` references -- both have the same root cause, of not taking
`nul` at the start of the context into account (as `nul` is not included
in the `m_miniContext` member, being a non-character). We already fixed
this issue for `if()` quite a long time ago, and some of the same
patterns can be with `m_miniContextIfLen` for example.
Fixes: #13304Fixes: #13316
With this keyboard in Keyman Core 15.0 or later (e.g. debugger, Keyman for Windows), try typing: te
5t
.5m
This issue is present in Keyman Core 15.0 and later versions. I have not tested earlier versions.
Note that using
index(cons,1)
gives a compiler error which makes total sense:I have tested the same pattern with
if()
and it works correctly in Keyman Core.The text was updated successfully, but these errors were encountered: