We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SetCursorPosition
AcceptLineImpl
1 parent 9644382 commit 9bc2a65Copy full SHA for 9bc2a65
PSReadLine/BasicEditing.cs
@@ -272,8 +272,8 @@ private bool AcceptLineImpl(bool validate)
272
ClearStatusMessage(render: true);
273
}
274
275
- var point = ConvertOffsetToPoint(_current);
276
- _console.SetCursorPosition(point.X, point.Y);
+ // Let public API set cursor to end of line incase end of line is end of buffer
+ SetCursorPosition(_current);
277
_console.Write("\n");
278
_inputAccepted = true;
279
return true;
0 commit comments