Skip to content

Commit

Permalink
Fix fed tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Apr 3, 2024
1 parent 9ac1dc0 commit 4e1cd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gkappa/wrapfix/mixin/MixinFontRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void wrapStringToWidthICU4J(String str, int wrapWidth, CallbackInfoRetur
switch (current) {
case '\n':
list.add(line.toString());
fed = i;
fed++;
line.delete(0, line.length()).append(format);
lineWidth = 0;
widths[i - fed] = lineWidth;
Expand Down Expand Up @@ -111,7 +111,7 @@ private void wrapStringToWidthICU4J(String str, int wrapWidth, CallbackInfoRetur
}
if (icui <= fed || i == icui) {
list.add(line.substring(0,line.length() - 1));
fed = i - 1;
fed += line.length() - 1;
line.delete(0, line.length()).append(format).append(current);
prevFormat = format.length();
lineWidth = getCharWidth(current);
Expand Down

0 comments on commit 4e1cd4c

Please sign in to comment.