Skip to content

Commit d6fafe0

Browse files
committed
Clear status message in CancelLine
Fixes #189
1 parent ff18c9f commit d6fafe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PSReadLine/BasicEditing.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static void RevertLine(ConsoleKeyInfo? key = null, object arg = null)
7777
/// </summary>
7878
public static void CancelLine(ConsoleKeyInfo? key = null, object arg = null)
7979
{
80+
_singleton.ClearStatusMessage(false);
8081
_singleton._current = _singleton._buffer.Length;
8182
// We want to display ^C to show the line was canceled. Instead of appending ^C
8283
// (or (char)3), we append 2 spaces so we don't affect tokenization too much, e.g.

0 commit comments

Comments
 (0)