mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-15 15:42:31 +01:00
Merge de795f7dd9 into 977e70e21b
This commit is contained in:
commit
8b8d56a232
7 changed files with 60 additions and 46 deletions
14
spec/integrations/rebound_bracket_spec.rb
Normal file
14
spec/integrations/rebound_bracket_spec.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
describe 'rebinding [' do
|
||||
context 'initialized before sourcing the plugin' do
|
||||
before do
|
||||
session.send_string("function [ { $commands[\\[] \"$@\" }")
|
||||
session.send_keys("'enter'")
|
||||
session.clear_screen
|
||||
end
|
||||
|
||||
it 'executes the custom behavior and the built-in behavior' do
|
||||
session.send_string('asdf')
|
||||
wait_for { session.content }.to eq('asdf')
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue