Skip to content

Commit cd32d5e

Browse files
committed
Correctly set history point after Ctrl-C
1 parent bcce435 commit cd32d5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PSReadLine/ReadLine.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ public static void CancelLine(ConsoleKeyInfo? key = null, object arg = null)
640640
_singleton.Render();
641641
Console.Out.Write("\n");
642642
_singleton._buffer.Clear(); // Clear so we don't actually run the input
643+
_singleton._currentHistoryIndex = _singleton._history.Count;
643644
_singleton._inputAccepted = true;
644645
}
645646

0 commit comments

Comments
 (0)