Consider undo history size don't just set to 1

Need to consider if we've undone back to the start instead of just
setting 1 here
This commit is contained in:
Matt Pass
2013-07-21 18:46:57 +01:00
parent 673c779ca5
commit 49c3f0e4bb

View File

@@ -202,7 +202,7 @@ function createNewCMInstance(num) {
window['cM'+num].on("change", function(thisCM, changeObj) {
// If we're not loading the file, it's a change, so update tab
if (!top.ICEcoder.loadingFile) {
top.ICEcoder.changedContent[top.ICEcoder.selectedTab-1] = 1;
top.ICEcoder.changedContent[top.ICEcoder.selectedTab-1] = thisCM.historySize().undo > 0 ? 1 : 0;
top.ICEcoder.redoTabHighlight(top.ICEcoder.selectedTab);
}
top.ICEcoder.getCaretPosition();