<!-- Before submitting your bug report ... - Please make sure you are able to reproduce the issue with the latest version of PSReadLine. - Please check for duplicates. +1 the duplicate if you find one and add additional details if you have any. The maintainer may close your issue without further explanation or engagement if: - You delete this entire template and go your own path; - You file an issue that has many duplicates; - You file an issue completely blank in the body. --> ## Environment ```none PS version: 5.1.19041.906 PSReadline version: 2.0.1 os: 10.0.19041.1 (WinBuild.160101.0800) PS file version: 10.0.19041.1 (WinBuild.160101.0800) HostName: ConsoleHost BufferWidth: 120 BufferHeight: 3000 ``` <!-- The following script will generate the environment data that helps triage and investigate the issue. Please run the script in the PowerShell session where you ran into the issue and provide the output above. & { $hostName = $Host.Name if ($hostName -eq "ConsoleHost" -and (Get-Command Get-CimInstance -ErrorAction SilentlyContinue)) { $id = $PID $inWindowsTerminal = $false while ($true) { $p = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId Like $id" if (!$p -or !$p.Name) { break } if ($p.Name -eq "WindowsTerminal.exe") { $inWindowsTerminal = $true; break } $id = $p.ParentProcessId } if ($inWindowsTerminal) { $hostName += " (Windows Terminal)" } } "`nPS version: $($PSVersionTable.PSVersion)" $m = Get-Module PSReadline $v = $m.Version; $pre = $m.PrivateData.PSData.Prerelease if ($pre) { $v = "$v-$pre" } "PSReadline version: $v" if ($IsLinux -or $IsMacOS) { "os: $(uname -a)" } else { "os: $((dir $env:SystemRoot\System32\cmd.exe).VersionInfo.FileVersion)" } "PS file version: $($name = if ($PSVersionTable.PSEdition -eq "Core") { "pwsh.dll" } else { "powershell.exe" }; (dir $pshome\$name).VersionInfo.FileVersion)" "HostName: $hostName" "BufferWidth: $([console]::BufferWidth)" "BufferHeight: $([console]::BufferHeight)`n" } --> ## Exception report <!-- Copy and paste the keys and the exception stack trace printed by PSReadLine, if there is any --> N/A ## Steps to reproduce <!-- A description of how to trigger this bug. --> 1. Run `Set-PSReadlineOption -EditMode vi` 2. Press <kbd>Ctrl</kbd> + <kbd>r</kbd> 3. Enter string occurring in previously entered command 4. Press <kbd>Ctrl</kbd> + <kbd>r</kbd> a second time ## Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> `bck-i-search:` appears and subsequent <kbd>Ctrl</kbd> + <kbd>r</kbd> scroll through earlier matches. ## Actual behavior <!-- What's actually happening? --> `find:` appears and subsequent <kbd>Ctrl</kbd> + <kbd>r</kbd> do nothing Example: https://user-images.githubusercontent.com/48232/118168605-e3be2b00-b3dc-11eb-909b-f457e0e5e08e.mp4