Skip to content

Commit 7e2b6e7

Browse files
rjmholtTylerLeonhardt
authored andcommitted
Fix '@' appearing in console (#1092)
* Fix '@' appearing in console * Name param
1 parent 651cdfa commit 7e2b6e7

File tree

1 file changed

+6
-1
lines changed
  • src/PowerShellEditorServices/Services/PowerShellContext/Console

1 file changed

+6
-1
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Console/ConsoleProxy.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ internal static ConsoleKeyInfo SafeReadKey(bool intercept, CancellationToken can
188188
}
189189
catch (OperationCanceledException)
190190
{
191-
return default(ConsoleKeyInfo);
191+
return new ConsoleKeyInfo(
192+
keyChar: ' ',
193+
ConsoleKey.DownArrow,
194+
shift: false,
195+
alt: false,
196+
control: false);
192197
}
193198
}
194199
}

0 commit comments

Comments
 (0)