// Default initialization does not keycap sequence
bool isNewKeycapSequence = false;
- if(currentCharacterIndex < lastCharacterIndex)
+ if(currentCharacterIndex <= lastCharacterIndex)
{
Character currentCharacter = *(textBuffer + currentCharacterIndex);
if(IsStartForKeycapSequence(currentCharacter))
// Default initialization does not VariationSelector sequence
bool isNewVariationSelectorSequence = false;
- if(currentCharacterIndex < lastCharacterIndex)
+ if(currentCharacterIndex <= lastCharacterIndex)
{
Character currentCharacter = *(textBuffer + currentCharacterIndex);
if(TextAbstraction::IsEmojiVariationSequences(currentCharacter))