Skip to content

Commit e463c04

Browse files
committed
Minor simplification
1 parent c8cf272 commit e463c04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PSReadLine/Position.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ private static int GetFirstNonBlankOfLogicalLinePos(int current)
102102
var beginningOfLine = GetBeginningOfLinePos(current);
103103

104104
var newCurrent = beginningOfLine;
105+
var buffer = _singleton._buffer;
105106

106-
while (newCurrent < _singleton._buffer.Length && _singleton._buffer.IsVisibleBlank(newCurrent))
107+
while (newCurrent < buffer.Length && buffer.IsVisibleBlank(newCurrent))
107108
{
108109
newCurrent++;
109110
}

0 commit comments

Comments
 (0)