Permalink
Browse files

janus.vim: This probably a bug.

  • Loading branch information...
1 parent 06ad842 commit 80d5f47a47eb6a6b933b853a8425ee4127602e3e @kalbasit kalbasit committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 janus/vim/core/before/plugin/janus.vim
@@ -244,7 +244,7 @@ function! janus#add_mapping(name, mapping_command, mapping_keys, ...)
if janus#is_plugin_enabled(a:name)
let mapping_command = join(a:000)
else
- if !janus#disable_plugin(a:name)
+ if !janus#is_module_loaded(a:name)
let reason = "Module is not loaded"
elseif g:janus_disabled_plugins[a:name]['reason'] == -1
return 0

0 comments on commit 80d5f47

Please sign in to comment.