microsoft / inshellisense

IDE style command line auto complete
MIT License
8.21k stars 179 forks source link

fix: prompt terminator replay giving bad suggestions #225

Closed cpendery closed 2 months ago

cpendery commented 2 months ago

Fixes #208. The issue is that the @ is getting detected as terminating at the @ so the space becomes part of the command. When calculating if the cursor is at the end of the command, it used trim instead of trimEnd so the cursor was always found to be 1 character left of the end giving recommendations too early.