powershellpowershell-7.4

Powershell converts consecutive "+" into a space


I'm kind of at a loss. On one of my computers, whenever I am using Powershell 7.4.1, it will not recognize consecutive "+"s when typing. If I type (2) "+" in a row, the first one is converted to a space. Three or more "+"s and the "+" that was a space becomes a "+" again.

Attached is a screenshot of Notepad++ as you can see the first "+" is missing.(https://i.sstatic.net/XI6HH.png)

Troubleshootng steps performed:

  1. Checked Windows Powershell and the issue does not exist.
  2. Uninstalled and reinstalled PowerShell 7.4.1
  3. Duplicated the setup that's on my other machines that do not have this issue.
  4. Disabled all forms of Windows autocompletion/autocorrection
  5. Googled the issue
  6. Bing'ed the issue
  7. Yahoo'ed the issue

None of the above resolved the issue or could help explain the issue.


Solution

  • I would like to thank everyone for their help. After following the suggested troubleshooting, I realized opening PowerShell 7 from the Start Menu had no issues, but running it from Windows Terminal generated the 'gremlins'.

    I backed up my settings.json and started fresh and the issue is gone. This is where I thought the story ended. Further investigation revealed this was a self-imposed issue with a custom PSReadline script I was developing. The script was doing some autocorrect, but my captures were way off. “..” was supposed to turn into “. ” instead I was reading “+” I also thought when I uninstalled and flushed everything the PSReadline settings were reset.

    Things that helped me further deep dive, this was a dev VM that I take constant snapshots, so I was able to go back and walk through the issue since it’s incarnation.