Skip to content

Commit e66bb16

Browse files
committed
Make most tests pass in Tmux 2.5
1 parent 6be22d5 commit e66bb16

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/helpers/setup_tmux_conf.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ setup_tmux_conf() {
77
# Copy mode (vi or emacs) is automatically determined from EDITOR
88
# environment variable set in test runner file `test/run-tests-within-vm`.
99
if tmux_is_at_least 2.4; then
10-
echo "bind-key -T copy-mode-vi y copy-selection-and-cancel" > ~/.tmux.conf
11-
echo "bind-key -T copy-mode-emacs y copy-selection-and-cancel" >> ~/.tmux.conf
12-
echo "run-shell './copycat.tmux'" >> ~/.tmux.conf
10+
echo "bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel" > ~/.tmux.conf
11+
echo "bind-key -T copy-mode y send-keys -X copy-selection-and-cancel" >> ~/.tmux.conf
12+
echo "run-shell '/vagrant/copycat.tmux'" >> ~/.tmux.conf
1313
else
1414
echo "bind-key -t vi-copy y copy-selection" > ~/.tmux.conf
1515
echo "bind-key -t emacs-copy y copy-selection" >> ~/.tmux.conf
16-
echo "run-shell './copycat.tmux'" >> ~/.tmux.conf
16+
echo "run-shell '/vagrant/copycat.tmux'" >> ~/.tmux.conf
1717
fi
1818
}
1919

test/helpers/setup_tmux_conf_with_custom_searches.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ setup_tmux_conf() {
77
# Copy mode (vi or emacs) is automatically determined from EDITOR
88
# environment variable set in test runner file `test/run-tests-within-vm`.
99
if tmux_is_at_least 2.4; then
10-
echo "bind-key -T copy-mode-vi y copy-selection-and-cancel" > ~/.tmux.conf
11-
echo "bind-key -T copy-mode-emacs y copy-selection-and-cancel" >> ~/.tmux.conf
10+
echo "bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel" > ~/.tmux.conf
11+
echo "bind-key -T copy-mode y send-keys -X copy-selection-and-cancel" >> ~/.tmux.conf
1212
echo "set -g @copycat_search_C-t 'random string[[:digit:]]+'" >> ~/.tmux.conf
13-
echo "run-shell './copycat.tmux'" >> ~/.tmux.conf
13+
echo "run-shell '/vagrant/copycat.tmux'" >> ~/.tmux.conf
1414
else
1515
echo "bind-key -t vi-copy y copy-selection" > ~/.tmux.conf
1616
echo "bind-key -t emacs-copy y copy-selection" >> ~/.tmux.conf
1717
echo "set -g @copycat_search_C-t 'random string[[:digit:]]+'" >> ~/.tmux.conf
18-
echo "run-shell './copycat.tmux'" >> ~/.tmux.conf
18+
echo "run-shell '/vagrant/copycat.tmux'" >> ~/.tmux.conf
1919
fi
2020
}
2121
# Cache the TMUX version for speed.

0 commit comments

Comments
 (0)