We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0429ddd + dec20f4 commit 2fc0a2eCopy full SHA for 2fc0a2e
1 file changed
app/src/processing/app/Sketch.java
@@ -270,6 +270,13 @@ protected void sortCode() {
270
SketchCode temp = code[who];
271
code[who] = code[i];
272
code[i] = temp;
273
+
274
+ // We also need to update the current tab
275
+ if (currentIndex == i) {
276
+ currentIndex = who;
277
+ } else if (currentIndex == who) {
278
+ currentIndex = i;
279
+ }
280
}
281
282
0 commit comments