Skip to content

Commit

Permalink
fix placement of highlighted error line (#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Aug 19, 2015
1 parent b4475ac commit 3218390
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion java/src/processing/mode/java/JavaBuild.java
Expand Up @@ -263,11 +263,14 @@ public String preprocess(File srcFolder,
if (sizeInfo != null && sizeInfo.hasSettings()) {
// String sizeStatement = sizeInfo.getStatement();
for (String stmt : sizeInfo.getStatements()) {
// if (sizeStatement != null) {
//System.out.format("size stmt is '%s'%n", sizeStatement);
// Don't remove newlines (and while you're at it, just keep spaces)
// https://github.com/processing/processing/issues/3654
stmt = stmt.trim();
int index = bigCode.indexOf(stmt);
if (index != -1) {
bigCode.delete(index, index + stmt.length());
System.out.println("code now " + bigCode);
} else {
// TODO remove once we hit final; but prevent an exception like in
// https://github.com/processing/processing/issues/3531
Expand Down
2 changes: 2 additions & 0 deletions todo.txt
Expand Up @@ -2,6 +2,8 @@
X processing-java isn't working in OS X 10.11 El Capitan
X https://github.com/processing/processing/issues/3497
o probably have to add the script/Processing.app location to user's path
X line selected for errors is off by one or two
X https://github.com/processing/processing/issues/3654

contribs
X Undo does not move to the correct location in the editor window
Expand Down

0 comments on commit 3218390

Please sign in to comment.