-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when pasting code #1346
Comments
ghost
added
the
Needs-Triage 🔍
It's a new issue that core contributor team needs to triage.
label
Feb 10, 2020
This happens if the buffer size == the viewport size and the input is taller than the viewport. |
This was fixed in recent versions of PSReadLine. Check out the pinned issue #1306 |
ghost
removed
the
Needs-Triage 🔍
It's a new issue that core contributor team needs to triage.
label
Feb 12, 2020
@daxian-dbw ❯ Get-InstalledModule -Name "PSReadLine"
Version Name Repository Description
------- ---- ---------- -----------
2.0.0-beta3 PSReadLine PSGallery Great command line editing in the PowerShell console host
❯ Get-Module
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Script 2.0.379 oh-my-posh {Get-ComputerName, Get-FormattedRootLocation, Get-FullPath, Get-ShortPath...}
Script 1.4.6 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}
Script 0.7.3 posh-git {Add-PoshGitToProfile, Add-SshKey, Enable-GitColors, Expand-GitCommand...}
Script 2.2.3 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}
Script 2.0.0 PSReadline {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLineKeyHandler...}
|
beta3 may not count as "recent versions". There have been 3 betas, 2 RCs and one GA update since then. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
The bug is that PSReadline is trying to change the contents off the top of the screen, but Terminal doesn't have any. PSReadline cannot handle the screen buffer size being the same as the viewport size.
Steps to reproduce
Expected behavior
All should work fine like in regular Powershell terminal.
Actual behavior
Error in the console Oops, something went wrong
The text was updated successfully, but these errors were encountered: