Bug 415106 - File save operation should support sending file diffs
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/undoStack.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/undoStack.js
index 4b309ff..d733bf5 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/undoStack.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/undoStack.js
@@ -266,7 +266,7 @@
 		 * @see orion.editor.UndoStack#markClean
 		 */
 		isClean: function() {
-			return this.cleanIndex === this.index && this._unsavedChanges.length === 0;
+			return this.cleanIndex === this.getSize().undo && this._unsavedChanges.length === 0;
 		},
 		/**
 		 * Returns true if there is at least one change to undo.