Description
When I set a hotkey for AcceptAndGetNext
I expect to be able to replay a few commands from history in order, by just pressing it repeatedly, but it keeps skipping commands.
Environment data
PS version: 5.1.18950.1000
PSReadline version: 2.0.0-beta4
os: 10.0.18950.1000 (WinBuild.160101.0800)
PS file version: 10.0.18950.1000 (WinBuild.160101.0800)
BufferWidth: 130
BufferHeight: 6000
And Also
PS version: 7.0.0-preview.2
PSReadline version: 2.0.0-beta4
os: 10.0.18950.1000 (WinBuild.160101.0800)
PS file version: 7.0.0.0
BufferWidth: 120
BufferHeight: 27
Steps to reproduce or exception report
When I set a hotkey (e.g. Ctrl+k
or Ctrl+Enter
) for AcceptAndGetNext
Then I type a few commands and hit enter after each:
Write-Host "One"
Write-Host "Two"
Write-Host "Three"
Write-Host "Four"
Write-Host "Five"
Then I hit up-arrow until I get back to "One" and hit the hotkey (e.g. Ctrl+k
) a couple of times, it skips from "One" to "Three" to "Five" ...