We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d4242 commit bbbe43bCopy full SHA for bbbe43b
PSReadLine/Prediction.Views.cs
@@ -275,6 +275,13 @@ internal PredictionListView(PSConsoleReadLine singleton)
275
276
internal override void GetSuggestion(string userInput)
277
{
278
+ if (_singleton._initialY < 0)
279
+ {
280
+ // Do not trigger list view prediction when the first line has already been scrolled up off the buffer.
281
+ // See https://github.com/PowerShell/PSReadLine/issues/3347 for an example where this may happen.
282
+ return;
283
+ }
284
+
285
bool inputUnchanged = string.Equals(_inputText, userInput, _singleton._options.HistoryStringComparison);
286
if (!inputUnchanged && _selectedIndex > -1)
287
0 commit comments