Skip to content

Commit

Permalink
position
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Labelle committed Nov 10, 2018
1 parent 20117cb commit f323319
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions PSReadLine/Position.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,5 @@ private static int GetBeginningOfLinePos(int current)

return newCurrent;
}

/// <summary>
/// Returns the position of the end of the logical line
/// as specified by the "current" position.
/// </summary>
/// <param name="current" />
private static int GetEndOfLogicalLinePos(int current)
{
System.Diagnostics.Debug.Assert(_singleton._buffer[current] != '\n');

var newCurrent = current;

for (var position = newCurrent; position < _singleton._buffer.Length; position++)
{
if (_singleton._buffer[position] == '\n')
{
break;
}

newCurrent = position;
}

return newCurrent;
}
}
}

0 comments on commit f323319

Please sign in to comment.