From 1a4d4dca79a96952257f56d92637951f3eae60be Mon Sep 17 00:00:00 2001 From: pajlada Date: Sat, 28 Nov 2020 15:03:36 +0100 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + src/providers/twitch/TwitchMessageBuilder.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23d529ae..5dd4ad99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index c7c7db98..000243f3 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -738,6 +738,7 @@ void TwitchMessageBuilder::runIgnoreReplaces( if (index >= pos) { index += by; + item.end += by; } } };