diff --git a/SourceGen/DisasmProject.cs b/SourceGen/DisasmProject.cs index 8944df2..8cfe7a8 100644 --- a/SourceGen/DisasmProject.cs +++ b/SourceGen/DisasmProject.cs @@ -1657,6 +1657,14 @@ namespace SourceGen { mUndoList.Add(changeSet); mUndoTop = mUndoList.Count; + + // If the user makes a change, saves the file, hits undo, then makes another change, + // the "undo top" and "save index" will be equal, which will make us think the + // file doesn't need to be saved. In reality there is no longer any undo index that + // matches the saved file state. + if (mUndoSaveIndex >= mUndoTop) { + mUndoSaveIndex = -1; + } } public string DebugGetUndoRedoHistory() { diff --git a/SourceGen/RuntimeData/Help/index.html b/SourceGen/RuntimeData/Help/index.html index 2fccfa1..d97aaa1 100644 --- a/SourceGen/RuntimeData/Help/index.html +++ b/SourceGen/RuntimeData/Help/index.html @@ -103,6 +103,7 @@ and 65816 code. The official web site is