Fix freeze in Ignore & Replace if replacement followed by emote (#2231)

shiftIndicesAfter now also shifts the item end position along with the item start position
This commit is contained in:
pajlada 2020-11-28 15:03:36 +01:00 committed by GitHub
parent fe95f0aa45
commit 1a4d4dca79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@
- Bugfix: Fix `:` emote completion menu ignoring emote capitalization (#1962)
- Bugfix: Fix a bug that caused `Ignore page` to fall into an infinity loop with an empty pattern and regex enabled (#2125)
- Bugfix: Fix a crash casued by FrankerFaceZ responding with invalid emote links (#2191)
- Bugfix: Fix a freeze caused by ignored & replaced phrases followed by Twitch Emotes (#2231)
- Dev: Updated minimum required Qt framework version to 5.12. (#2210)
## 2.2.0

View file

@ -738,6 +738,7 @@ void TwitchMessageBuilder::runIgnoreReplaces(
if (index >= pos)
{
index += by;
item.end += by;
}
}
};