mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 06:45:11 +08:00
Fix tmux-multiline-prompt test with EDITOR=vim
This test does "isolated-tmux send-keys Escape" to exit copy mode. When EDITOR contains "vi", tmux will use Vi keybindings where Escape does something else ("q" would exit copy mode). Tests want to have predictable behavior so let's declare the default emacs key bindings unconditionally. Fixes #10812
This commit is contained in:
parent
2e2765eec0
commit
c155acd004
|
@ -2,9 +2,12 @@ function isolated-tmux-start
|
||||||
set -l tmpdir (mktemp -d)
|
set -l tmpdir (mktemp -d)
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
|
|
||||||
|
begin
|
||||||
|
echo 'set -g mode-keys emacs'
|
||||||
# macOS lacks the tmux-256color terminfo, use screen-256color instead.
|
# macOS lacks the tmux-256color terminfo, use screen-256color instead.
|
||||||
if test (uname) = Darwin
|
if test (uname) = Darwin
|
||||||
echo 'set -g default-terminal "screen-256color"'
|
echo 'set -g default-terminal "screen-256color"'
|
||||||
|
end
|
||||||
end >./.tmux.conf
|
end >./.tmux.conf
|
||||||
|
|
||||||
function isolated-tmux --inherit-variable tmpdir
|
function isolated-tmux --inherit-variable tmpdir
|
||||||
|
|
Loading…
Reference in New Issue
Block a user