Skip to content

Commit

Permalink
Fix converting emote expressions to icons
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur committed Sep 28, 2020
1 parent 543fbd1 commit 3d890fc
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -194,9 +194,9 @@ protected void addTo( ChatArea chatArea ) throws BadLocationException
}
}

to = from + 1;
while (to < line.length()) {
if (Character.isWhitespace(line.charAt(to++))) break;
to = from;
while (++to < line.length()) {
if (Character.isWhitespace(line.charAt(to))) break;
}
insertFragment(chatArea, line.substring(from, to), messageStyle);
}
Expand Down

0 comments on commit 3d890fc

Please sign in to comment.