diff options
| author | Teddy Wing | 2015-11-23 23:48:08 -0500 | 
|---|---|---|
| committer | Teddy Wing | 2015-11-23 23:53:37 -0500 | 
| commit | 24f334fa25c736ccfd6bbea337434fba759eded4 (patch) | |
| tree | 9239d4d2f1921084339152aed450e7d272c14d38 /plugin | |
| parent | 29b34c5e0b48428b81240bf6b49c2845885ef32a (diff) | |
| download | auditory.vim-24f334fa25c736ccfd6bbea337434fba759eded4.tar.bz2 | |
autoload/auditory.vim: Prevent double `AuditoryOn` & `AuditoryOff`
Previously executing `:AuditoryOn` and `:AuditoryOff` would always do
the thing they're supposed to do regardless of whether Auditory was
already on or off.
This caused errors because things got messed up when trying to
double assign the mappings and double unmap the mappings.
Now check for the status of the `g:auditory_on` flag before turning
Auditory on or off.
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions
