mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-11-29 20:03:11 +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:
1 parent
f0f1332e6b
commit
9e4d3c337f
4 files changed
+25
-25
No files matched your search
+2
-2
@@ -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