Skip to content

This problem arise when performing commit command #4000

Closed
@Suj8kafka

Description

@Suj8kafka

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

git commit -m 
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 136 Keys:
 UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow Enter
 c d Space s i g n Backspace Backspace Backspace Backspace S i n g Backspace Backspace g n U Backspace u p F r o m G l o w Enter
 UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace o r m G l o w Enter
 g i t Space s t a t u s Enter
 g i t Space a d d . Space Backspace Backspace Space . Enter
 g i t Space c o m m i t Space - m Space " c l e a r Enter
 g i t Space c o m m t Backspace t i Space Ctrl+w Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace c o m m i t Space - m Space "

Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: left
Actual value was -1.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)       
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)   
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
----------------------------------------------------------------------

Screenshot

image

Environment data

PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "PS Version: $($PSVersionTable.PSVersion)"
PS Version: 5.1.19041.4291
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "PS HostName: $hostName"
PS HostName: ConsoleHost
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "PSReadLine Version: $v"
PSReadLine Version: 2.0.0-beta2
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "PSReadLine EditMode: $((Get-PSReadLineOption).EditMode)"
PSReadLine EditMode: Windows
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "OS: $os"
OS: 10.0.19041.320 (WinBuild.160101.0800)
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "BufferWidth: $([console]::BufferWidth)"
BufferWidth: 92
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host "BufferHeight: $([console]::BufferHeight)"
BufferHeight: 48
PS C:\Users\Sujee\OneDrive\Desktop\JavaScript Codes 101\Portfolio Neon\SignupFormGlow>     Write-Host ''

Steps to reproduce

I got no idea

Expected behavior

This occurs when git commit -m
after this just pressing "shift+' " to put the comment.

Actual behavior

No idea ### ****

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions