Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions PSReadLine/Completion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,16 @@ private CommandCompletion GetCompletions()
catch (Exception)
{
}
finally
{
// GetCompletions could scroll the screen, e.g. via Write-Progress. For example,
// cd <TAB> under the CloudShell Azure drive will show the progress bar while fetching data.
// We need to update the _initialY in case the current cursor postion has changed.
if (_singleton._initialY > _console.CursorTop)
{
_singleton._initialY = _console.CursorTop;
}
}
}

return _tabCompletions;
Expand Down