Fix Undo/Redo

This commit is contained in:
George Fleming
2016-04-29 13:17:53 -07:00
parent 66ee25c603
commit 1d87607bd4
@@ -76,7 +76,8 @@ namespace Microsoft.PowerShell
_singleton.ClearStatusMessage(render: false);
}
_singleton._edits[_singleton._undoEditIndex - 1].Undo();
_singleton._edits.RemoveAt(_singleton._undoEditIndex - 1);
// How do you redo if you remove it permanently?
// _singleton._edits.RemoveAt(_singleton._undoEditIndex - 1);
_singleton._undoEditIndex--;
if (_singleton._options.EditMode == EditMode.Vi && _singleton._current >= _singleton._buffer.Length)
{