Skip to content

Commit

Permalink
Limit sidebar line length to 40
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jul 20, 2015
1 parent 8e791f7 commit 027283a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -446,8 +446,8 @@ public void setLines(List<String> lines) {
}
for (int i = 0; i < lines.size() && i < this.lines.length; i++, score += this.increment) {
String line = lines.get(i);
if (line.length() > 48) {
line = line.substring(0, 48);
if (line.length() > 40) {
line = line.substring(0, 40);
}
this.lines[i] = line;
this.scores[i] = score;
Expand Down

0 comments on commit 027283a

Please sign in to comment.