Skip to content

Commit

Permalink
Fix issue with message grouping
Browse files Browse the repository at this point in the history
More specifically, fixed the feature only checking as many characters as the last message had
  • Loading branch information
MrAlaux committed Dec 17, 2024
1 parent 0569e7d commit 717114a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@

## Bug Fixes

None.
- Message grouping only checking as many characters as the last message had,
causing incorrect grouping (e.g. new message "TEST" being grouped with last message "TES")
1 change: 1 addition & 0 deletions src/st_widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ static void AddMessage(char *const string, int duration, const boolean is_chat_m
static int num_copies = 0;

if (hud_msg_group && message_list_tail && num_copies < MAX_COPIES
&& strlen(string) == message_list_tail->orig_length
&& !strncmp(string, message_list_tail->string, message_list_tail->orig_length))
{
num_copies++;
Expand Down

0 comments on commit 717114a

Please sign in to comment.