mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Don't overwrite config with default values
otherwise users are obliged to set the config values *after* sourcing the plugin. They're not able to do it before. Also, re-sourcing the plugin will reset the values to the defaults again. See zimfw/zimfw#301 Fixes #335
This commit is contained in:
parent
f0f1332e6b
commit
9e4d3c337f
4 changed files with 25 additions and 25 deletions
|
|
@ -11,8 +11,8 @@ RSpec.shared_context 'terminal session' do
|
|||
|
||||
around do |example|
|
||||
before_sourcing.call
|
||||
|
||||
session.run_command((['source zsh-autosuggestions.zsh'] + options).join('; '))
|
||||
session.run_command(options.join('; '))
|
||||
session.run_command('source zsh-autosuggestions.zsh')
|
||||
after_sourcing.call
|
||||
session.clear_screen
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue