Merge pull request #10398 from mqudsi/forward-char-passive

Add `forward-char-passive` and `backward-char-passive`
This commit is contained in:
Mahmoud Al-Qudsi
2024-03-30 22:29:46 -05:00
committed by GitHub
5 changed files with 41 additions and 0 deletions

View File

@@ -102,3 +102,13 @@ isolated-tmux send-keys C-e M-f Space nothing
tmux-sleep
isolated-tmux capture-pane -p
# CHECK: prompt 7> echo suggest nothing
isolated-tmux send-keys C-u 'bind \cs forward-char-passive' Enter C-l
isolated-tmux send-keys C-u 'bind \cb backward-char-passive' Enter C-l
isolated-tmux send-keys C-u 'echo do not accept this' Enter C-l
tmux-sleep
isolated-tmux send-keys 'echo do not accept thi' C-b C-b Delete C-b C-s 'h'
tmux-sleep
isolated-tmux send-keys C-s C-s C-s 'x'
isolated-tmux capture-pane -p
# CHECK: prompt 10> echo do not accept thix