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 cb0e0d4 commit ea25286Copy full SHA for ea25286
README.md
@@ -187,7 +187,7 @@ Set-PSReadLineKeyHandler -Chord '"',"'" `
187
$cursor = $null
188
[Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([ref]$line, [ref]$cursor)
189
190
- if ($line[$cursor] -eq $key.KeyChar) {
+ if ($line.Length -gt $cursor -and $line[$cursor] -eq $key.KeyChar) {
191
# Just move the cursor
192
[Microsoft.PowerShell.PSConsoleReadLine]::SetCursorPosition($cursor + 1)
193
}
0 commit comments