mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix Undo/Redo
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user