Clean up the accept-autosuggestion code path a little bit

It's still a bit too complex unfortunately.
This commit is contained in:
Johannes Altmanninger
2024-11-14 12:20:47 +01:00
parent 2b19e1a09b
commit ca21872d14
3 changed files with 53 additions and 43 deletions

View File

@@ -0,0 +1,11 @@
#RUN: %fish %s
#REQUIRES: command -v tmux
isolated-tmux-start
isolated-tmux send-keys 'echo "foo bar baz"' Enter C-l
isolated-tmux send-keys 'echo '
tmux-sleep
isolated-tmux send-keys M-Right
isolated-tmux capture-pane -p
# CHECK: prompt 1> echo "foo bar baz"
tmux-sleep