mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 11:37:10 +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
|
||||||
|
|
||||||
# macOS lacks the tmux-256color terminfo, use screen-256color instead.
|
begin
|
||||||
if test (uname) = Darwin
|
echo 'set -g mode-keys emacs'
|
||||||
echo 'set -g default-terminal "screen-256color"'
|
# macOS lacks the tmux-256color terminfo, use screen-256color instead.
|
||||||
|
if test (uname) = Darwin
|
||||||
|
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