clear undo history for first file load
This commit is contained in:
@@ -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 () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user