Fixed: AS 1/2/3 - Fast switching of scripts causing incorrect caret position remembered

Fixed: AS 1/2 - Remembering caret position for frames
This commit is contained in:
Jindra Petřík
2025-05-02 08:45:26 +02:00
parent a8114651e3
commit d9c866c7d6
8 changed files with 126 additions and 39 deletions
@@ -420,6 +420,19 @@ public abstract class GraphTextWriter {
public GraphTextWriter startBlock() {
return startBlock("{");
}
/**
* Starts block, but do not continue to new line.
* @return GraphTextWriter
*/
public GraphTextWriter startBlockNoNewLine() {
if (formatting.beginBlockOnNewLine) {
newLine();
} else {
append(" ");
}
return append("{");
}
/**
* Ends block.