clear undo history for first file load

This commit is contained in:
Matt Parker
2025-10-28 20:44:26 +10:00
parent dc18bfa190
commit f4df002358

View File

@@ -258,6 +258,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
_fileChangingSuppressBreakpointToggleEvent = true; _fileChangingSuppressBreakpointToggleEvent = true;
SetText(await readFileTask); SetText(await readFileTask);
_fileChangingSuppressBreakpointToggleEvent = false; _fileChangingSuppressBreakpointToggleEvent = false;
ClearUndoHistory();
if (fileLinePosition is not null) SetFileLinePosition(fileLinePosition.Value); if (fileLinePosition is not null) SetFileLinePosition(fileLinePosition.Value);
}); });
_ = Task.GodotRun(async () => _ = Task.GodotRun(async () =>