aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2015-08-16 02:48:18 -0400
committerTeddy Wing2015-08-16 02:48:18 -0400
commit87452e0058fb8984b678947d33715b155dd3dbf0 (patch)
tree3ff77c9d719991cd876114001eaa312ff6e84ee6 /plugin
parent8a0fd42b1df21aa9bd1c9d6f8b169d060ea8db6e (diff)
downloadauditory.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