mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 08:56:10 +08:00

With a commandline like ``` a b c d ``` and the cursor at the beginning, this would eat "a b", which isn't a sensible bigword. Bigword should be "a word, with optional leading whitespace". This was caused by an overly zealous state-machine that always ate one char and only *then* started eating leading whitespace. Instead eat *a character*, and if it was whitespace go on eating whitespace, and if it was a printable go straight to only eating printables. Fixes #7325.