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:
Eric Nielsen 2018-10-15 16:37:02 -05:00 committed by Eric Freese
commit 9e4d3c337f
4 changed files with 25 additions and 25 deletions

View file

@ -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