diff --git a/content/treestyletab/res/operationHistory.js b/content/treestyletab/res/operationHistory.js index 2ecc0f43..9ddf4164 100644 --- a/content/treestyletab/res/operationHistory.js +++ b/content/treestyletab/res/operationHistory.js @@ -146,7 +146,7 @@ var history = options.history; return { entries : history.entries, - index : Math.max(0, Math.min(history.entries.length-1, history.index)) + index : Math.min(history.entries.length-1, Math.max(0, history.index)) }; },