default => history

This commit is contained in:
Eric Freese
2018-11-19 15:30:35 -07:00
parent 4540304fa0
commit 62f5f14f2f
6 changed files with 9 additions and 9 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

View File

@@ -1,5 +1,5 @@
describe 'a suggestion for a given prefix' do
let(:options) { ['_zsh_autosuggest_strategy_default() { suggestion="echo foo" }'] }
let(:options) { ['_zsh_autosuggest_strategy_history() { suggestion="echo foo" }'] }
it 'is determined by calling the default strategy function' do
session.send_string('e')