mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 03:37:26 +08:00

I think commit 8386088b3 (Update commandline state changes eagerly as well, 2024-04-11) broke the alt-s binding. This is because we update the commandline state snapshot (which is consumed by builtin commandline and others) only at key points. This seems like a dubious optimization. With the new streamlined bind execution semantics, this doesn't really work anymore; any shell command can run any number of commands like "commandline -i foo" which should synchronize. Do the simple thing of calculating the snapshot whenever needed.