mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
provider: g:loaded_xx_provider=2 means "enabled and working"
Value of 1 cannot be used, because users might set that in their vimrc to _disable_ a provider, which would confuse :checkhealth and has().
This commit is contained in:
@@ -23996,7 +23996,9 @@ bool eval_has_provider(const char *provider)
|
||||
}
|
||||
}
|
||||
|
||||
return (tv.v_type == VAR_NUMBER) ? !!tv.vval.v_number : false;
|
||||
return (tv.v_type == VAR_NUMBER)
|
||||
? 2 == tv.vval.v_number // Value of 2 means "loaded and working".
|
||||
: false;
|
||||
}
|
||||
|
||||
/// Writes "<sourcing_name>:<sourcing_lnum>" to `buf[bufsize]`.
|
||||
|
Reference in New Issue
Block a user