File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,18 @@ private void SetOptionsInternal(SetPSReadlineOption options)
70
70
Options . MaximumHistoryCount = options . MaximumHistoryCount ;
71
71
if ( _history != null )
72
72
{
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 ;
81
84
}
82
- _history = newHistory ;
83
- _currentHistoryIndex = _history . Count ;
84
- }
85
85
}
86
86
if ( options . _maximumKillRingCount . HasValue )
87
87
{
You can’t perform that action at this time.
0 commit comments