[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Tue May 20 17:20:38 UTC 2008


kawas
Tue May 20 13:20:38 EDT 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard
In directory dev.open-bio.org:/tmp/cvs-serv7368/src/main/org/biomoby/service/dashboard

Modified Files:
	PerlMoSeSSyntaxDocument.java 
Log Message:
fixed the nesting of curly braces
moby-live/Java/src/main/org/biomoby/service/dashboard PerlMoSeSSyntaxDocument.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PerlMoSeSSyntaxDocument.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PerlMoSeSSyntaxDocument.java	2008/05/20 15:33:00	1.2
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PerlMoSeSSyntaxDocument.java	2008/05/20 17:20:38	1.3
@@ -156,6 +156,7 @@
 	boolean replaced = false;
 	if (str.equals("{") || str.equals("[") || str.equals("(")) {
 	    str = addMatchingToken(offset, str);
+	    
 	    replaced = true;
 	}
 	
@@ -163,7 +164,7 @@
 	processChangedLines(offset, str.length());
 	if (replaced) {
 	    // FIXME bad hack to move the cursor ...
-	    PerlMoSeSPanel.moveCursor(offset+str.length() - 2);
+	    PerlMoSeSPanel.moveCursor(str.lastIndexOf("\n") >= 0 ? offset + str.lastIndexOf("\n") : offset+str.length() - 2);
 	}
     }
 




More information about the MOBY-guts mailing list