Added disabling to redo based on undo-tree-mode