fish-shell/tests/checks/tmux-history-search2.fish
Johannes Altmanninger b73c8abb79 Fix regression causing crash when history token search hits end
This is consistent with what we do for highlighting history search,
see d7354880e3 (Fix regression causing crash in token history search,
2025-01-27).  In future, we should try to find a better fix (and a
better test).

Fixes the other problem described in #11096
2025-01-27 18:13:07 +01:00

15 lines
398 B
Fish

#RUN: %fish %s
#REQUIRES: command -v tmux
#REQUIRES: test -z "$CI"
isolated-tmux-start
isolated-tmux send-keys ': 1' Enter
isolated-tmux send-keys ': ' M-Up M-Down M-Up M-Up M-Up Enter
isolated-tmux send-keys C-l 'echo still alive' Enter
tmux-sleep
# isolated-tmux capture-pane -p | tail -2
isolated-tmux capture-pane -p
# CHECK: prompt 2> echo still alive
# CHECK: still alive
# CHECK: prompt 3>