Adding support for ZSH_AUTOSUGGEST_BUFFER_MIN_SIZE to disable suggestions on small buffers

This commit is contained in:
muhammadsohail 2023-05-20 16:51:23 -04:00 committed by Muhammad Sohail
commit d6334ded0b
5 changed files with 47 additions and 13 deletions

View file

@ -25,6 +25,9 @@ describe 'a suggestion' do
wait_for { session.content }.to eq(long_command)
end
it 'is not provided when the buffer is longer than the specified length'
it 'is not provided when the buffer is longer than the specified length' do
session.send_string(long_command[0...(buffer_max_size + 1)])
wait_for { session.content }.to eq(long_command[0...(buffer_max_size + 1)])
end
end
end