diff --git a/PSReadLine/BasicEditing.cs b/PSReadLine/BasicEditing.cs index a207c038..1e2332ba 100644 --- a/PSReadLine/BasicEditing.cs +++ b/PSReadLine/BasicEditing.cs @@ -272,8 +272,8 @@ private bool AcceptLineImpl(bool validate) ClearStatusMessage(render: true); } - var point = ConvertOffsetToPoint(_current); - _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); _console.Write("\n"); _inputAccepted = true; return true;