From f4df0023582a5c4e7c75aacbd799f43fe30c447b Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Tue, 28 Oct 2025 20:44:26 +1000 Subject: [PATCH] clear undo history for first file load --- src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs index 72c7783..b63c32a 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs @@ -258,6 +258,7 @@ public partial class SharpIdeCodeEdit : CodeEdit _fileChangingSuppressBreakpointToggleEvent = true; SetText(await readFileTask); _fileChangingSuppressBreakpointToggleEvent = false; + ClearUndoHistory(); if (fileLinePosition is not null) SetFileLinePosition(fileLinePosition.Value); }); _ = Task.GodotRun(async () =>