Skip to content

Commit 7d959a2

Browse files
committed
Fix completion at end of line
1 parent 256db70 commit 7d959a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/ReadLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ public static void Insert(string s)
14801480
/// <param name="replacement">The replacement text</param>
14811481
public static void Replace(int start, int length, string replacement)
14821482
{
1483-
if (start < 0 || start >= _singleton._buffer.Length)
1483+
if (start < 0 || start > _singleton._buffer.Length)
14841484
{
14851485
throw new ArgumentException(PSReadLineResources.StartOutOfRange, "start");
14861486
}

0 commit comments

Comments
 (0)