Skip to content

Commit 4396051

Browse files
Fix the history pager deletion test on macOS
It appears that the shift-delete key escape sequence is not being generated because there's no mapping for it in screen-256color, causing the test to fail. Switch to using f1 for the test.
1 parent 721a360 commit 4396051

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/checks/tmux-history-search.fish

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
# disable on github actions because it's flakey
44
#REQUIRES: test -z "$CI"
55

6+
# The default history-pager-delete binding is shift-delete which
7+
# may not have a terminfo entry for screen-256color, so rebind to F1.
68
set -g isolated_tmux_fish_extra_args -C '
79
set -g fish_autosuggestion_enabled 0
10+
bind -k f1 history-pager-delete or backward-delete-char
811
'
912
isolated-tmux-start
1013

@@ -52,7 +55,7 @@ isolated-tmux send-keys C-e C-u C-r
5255
tmux-sleep
5356
isolated-tmux send-keys "echo sdifjsdoifjsdoifj"
5457
tmux-sleep
55-
isolated-tmux send-keys S-DC
58+
isolated-tmux send-keys F1
5659
isolated-tmux capture-pane -p | grep "(no matches)"
5760
# CHECK: (no matches)
5861
isolated-tmux send-keys Enter C-e C-u "echo foo" Enter

0 commit comments

Comments
 (0)