Skip to content

Commit 6903f04

Browse files
committed
Fix indentation.
1 parent 2654659 commit 6903f04

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

PSReadLine/Options.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ private void SetOptionsInternal(SetPSReadlineOption options)
7070
Options.MaximumHistoryCount = options.MaximumHistoryCount;
7171
if (_history != null)
7272
{
73-
var newHistory = new HistoryQueue<HistoryItem>(Options.MaximumHistoryCount);
74-
while (_history.Count > Options.MaximumHistoryCount)
75-
{
76-
_history.Dequeue();
77-
}
78-
while (_history.Count > 0)
79-
{
80-
newHistory.Enqueue(_history.Dequeue());
73+
var newHistory = new HistoryQueue<HistoryItem>(Options.MaximumHistoryCount);
74+
while (_history.Count > Options.MaximumHistoryCount)
75+
{
76+
_history.Dequeue();
77+
}
78+
while (_history.Count > 0)
79+
{
80+
newHistory.Enqueue(_history.Dequeue());
81+
}
82+
_history = newHistory;
83+
_currentHistoryIndex = _history.Count;
8184
}
82-
_history = newHistory;
83-
_currentHistoryIndex = _history.Count;
84-
}
8585
}
8686
if (options._maximumKillRingCount.HasValue)
8787
{

0 commit comments

Comments
 (0)