mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixed uncommenting for prefixes other than java/js in editor
This commit is contained in:
@@ -1717,9 +1717,9 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
if (pos + prefixLen > length) {
|
||||
commented = false;
|
||||
} else {
|
||||
// Check the first two characters to see if it's already a comment.
|
||||
String begin = textarea.getText(pos, 2);
|
||||
//System.out.println("begin is '" + begin + "'");
|
||||
// Check the first characters to see if it's already a comment.
|
||||
String begin = textarea.getText(pos, prefixLen);
|
||||
System.out.println("begin is '" + begin + "'");
|
||||
commented = begin.equals(prefix);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user