Skip to content

Commit

Permalink
Remove slash from line wrappable characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodlyay committed May 5, 2024
1 parent 1b6c090 commit e163baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MCGalaxy/Chat/LineWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static class LineWrapper {
// For e.g. "item1/item2/item3", want to wordwrap on the '/'
// However for "item1 /command", want to wordwrap BEFORE '/'
// TODO: This probably needs to account for colour codes
return (c == '-' || c == '/' || c == '\\') && line[i - 1] != ' ';
return (c == '-' || c == '\\') && line[i - 1] != ' ';
}

static bool StartsWithColor(char[] message, int messageLen, int offset) {
Expand Down

0 comments on commit e163baf

Please sign in to comment.