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:
committed by
Eric Freese
parent
f0f1332e6b
commit
9e4d3c337f
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user