mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 05:37:40 +08:00

This crashes if the autosuggesion is exhausted. C++ used autosuggestion.text.substr(pos, 1) which throws if pos is OOB but not if pos + 1 is.