Skip to content

Commit ff77a68

Browse files
committed
Update comment
1 parent 43bddb1 commit ff77a68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Console/TerminalReadLine.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public SecureString ReadSecureLine(CancellationToken cancellationToken)
3636
switch (keyInfo.Key)
3737
{
3838
case ConsoleKey.Enter:
39-
// Break to return the completed string
39+
// Stop the while loop so we can realign the cursor
40+
// and then return the entered string
4041
enterPressed = true;
4142
continue;
4243

0 commit comments

Comments
 (0)