Skip to content

Commit 2ef73a9

Browse files
committed
Fix off by 1 error in BeginningOfLine
Home on first line of multi-line went to the second character, not the first.
1 parent 9ede501 commit 2ef73a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/Movement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void BeginningOfLine(ConsoleKeyInfo? key = null, object arg = null
5454
if (_singleton.LineIsMultiLine())
5555
{
5656
int i = Math.Max(0, _singleton._current - 1);
57-
for (; i > 1; i--)
57+
for (; i > 0; i--)
5858
{
5959
if (_singleton._buffer[i] == '\n')
6060
{

0 commit comments

Comments
 (0)