diff options
| author | Teddy Wing | 2015-08-16 02:48:18 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2015-08-16 02:48:18 -0400 | 
| commit | 87452e0058fb8984b678947d33715b155dd3dbf0 (patch) | |
| tree | 3ff77c9d719991cd876114001eaa312ff6e84ee6 /plugin | |
| parent | 8a0fd42b1df21aa9bd1c9d6f8b169d060ea8db6e (diff) | |
| download | auditory.vim-87452e0058fb8984b678947d33715b155dd3dbf0.tar.bz2 | |
autoload/auditory.vim: Fix `AuditoryToggle` + `Auditory[On|Off]`
When using `:AuditoryToggle` in conjunction with `:AuditoryOn` or
`:AuditoryOff`, things would get messed up. This is because
`:AuditoryToggle` relies on `g:auditory_on` in order to know whether to
turn sounds on or off, but the variable was only getting set in
`auditory#ToggleMappings`, not in the functions that `:AuditoryOn` or
`:AuditoryOff` call.
Move the setting of the variable into `auditory#AssignMappings` and
`auditory#Unmap` so that the right thing will happen regardless of which
on/off/toggle commands you run.
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions
