Skip to content

Commit 717114a

Browse files
committed
Fix issue with message grouping
More specifically, fixed the feature only checking as many characters as the last message had
1 parent 0569e7d commit 717114a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
## Bug Fixes
1212

13-
None.
13+
- Message grouping only checking as many characters as the last message had,
14+
causing incorrect grouping (e.g. new message "TEST" being grouped with last message "TES")

src/st_widgets.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ static void AddMessage(char *const string, int duration, const boolean is_chat_m
189189
static int num_copies = 0;
190190

191191
if (hud_msg_group && message_list_tail && num_copies < MAX_COPIES
192+
&& strlen(string) == message_list_tail->orig_length
192193
&& !strncmp(string, message_list_tail->string, message_list_tail->orig_length))
193194
{
194195
num_copies++;

0 commit comments

Comments
 (0)