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 cfe5d1b + 2fc0a2e commit 40b6e9fCopy full SHA for 40b6e9f
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
@@ -678,7 +685,7 @@ public void handleDeleteCode() {
678
685
setCurrentCode(0);
679
686
680
687
// update the tabs
681
- editor.repaintHeader();
688
+ editor.rebuildHeader();
682
689
683
690
684
691
0 commit comments