mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30c9c81d38 |
@@ -403,6 +403,9 @@ public class TokenImpl implements Token {
|
||||
int last = getOffset();
|
||||
FontMetrics fm = null;
|
||||
while (token != null && token.isPaintable()) {
|
||||
if (token.textCount > 10000) {
|
||||
return getOffset() + (int) (x / 7);
|
||||
}
|
||||
fm = textArea.getFontMetricsForTokenType(token.getType());
|
||||
char[] text = token.text;
|
||||
int start = token.textOffset;
|
||||
@@ -786,6 +789,13 @@ public class TokenImpl implements Token {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
text = null;
|
||||
offset = -1;
|
||||
type = Token.NULL;
|
||||
nextToken = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user