Merge pull request #8454 from Learath2/dd_pr_fixsearchhilite

Fix console search highlighting. Close #8451
This commit is contained in:
Dennis Felsing 2024-06-05 16:20:53 +00:00 committed by GitHub
commit 151956294d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1667,7 +1667,7 @@ public:
while(pCurrent < pBatchEnd && pCurrent != pEllipsis) while(pCurrent < pBatchEnd && pCurrent != pEllipsis)
{ {
const int PrevCharCount = pCursor->m_GlyphCount; const int PrevCharCount = pCursor->m_CharCount;
pCursor->m_CharCount += pTmp - pCurrent; pCursor->m_CharCount += pTmp - pCurrent;
pCurrent = pTmp; pCurrent = pTmp;
int Character = NextCharacter; int Character = NextCharacter;