make Find in Reference default to built-in PApplet methods (fixes #4224)

This commit is contained in:
Ben Fry
2016-09-08 12:09:49 -04:00
parent 3226fa63ca
commit d78e828ef9
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -166,7 +166,13 @@ public abstract class Mode {
if (htmlFilename.endsWith("_")) {
keyword += "_";
}
keywordToReference.put(keyword, htmlFilename);
// Allow the bare size() command to override the lookup
// for StringList.size() and others, but not vice-versa.
// https://github.com/processing/processing/issues/4224
boolean seen = keywordToReference.containsKey(keyword);
if (!seen || (seen && keyword.equals(htmlFilename))) {
keywordToReference.put(keyword, htmlFilename);
}
}
}
}
+4
View File
@@ -1,4 +1,8 @@
0254 (3.2.2 or 3.3)
X Find in reference for size() opens StringList.size()
X https://github.com/processing/processing/issues/4224
X though that's still imperfect:
X https://github.com/processing/processing/issues/4655
X more font tweaks to make mono fonts work properly after #4639
_ update the Linux notes based on where we land on this
_ https://github.com/processing/processing/wiki/Supported-Platforms#linux