Skip to content

Commit

Permalink
fix(Studio): Editing issues caused from formatting current line
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Jan 24, 2025
1 parent 2fd78d3 commit 5ffa479
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Studio/CelesteStudio/Editing/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@ private void FormatLines(ICollection<int> rows) {
FileRefactor.FormatLines(lines, rows, StyleConfig.Current.ForceCorrectCommandCasing, StyleConfig.Current.CommandArgumentSeparator);

foreach (int row in rows) {
if (row == Document.Caret.Row) {
continue;
}

Document.ReplaceLine(row, lines[row]);
}
}
Expand Down

0 comments on commit 5ffa479

Please sign in to comment.