mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 22:13:55 +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.
14 lines
379 B
Fish
14 lines
379 B
Fish
#RUN: %fish %s
|
|
#REQUIRES: command -v tmux
|
|
|
|
isolated-tmux-start
|
|
|
|
isolated-tmux send-keys "function prepend; commandline --cursor 0; commandline -i echo; end" Enter
|
|
isolated-tmux send-keys "bind c-g prepend" Enter
|
|
isolated-tmux send-keys C-l
|
|
isolated-tmux send-keys 'printf'
|
|
isolated-tmux send-keys C-g Space
|
|
tmux-sleep
|
|
isolated-tmux capture-pane -p
|
|
# CHECK: prompt 2> echo printf
|