Support fallback strategies by setting array in config

This commit is contained in:
Eric Freese
2018-06-06 21:49:03 -06:00
parent 949c374195
commit bcbdad83e9
10 changed files with 100 additions and 55 deletions

View File

@@ -2,7 +2,7 @@ describe 'using `zle -U`' do
let(:before_sourcing) do
-> do
session.
run_command('_zsh_autosuggest_strategy_test() { sleep 1; _zsh_autosuggest_strategy_default "$1" }').
run_command('_zsh_autosuggest_strategy_test() { sleep 1; _zsh_autosuggest_strategy_history "$1" }').
run_command('foo() { zle -U - "echo hello" }; zle -N foo; bindkey ^B foo')
end
end