diff options
author | Jacques Germishuys <jacquesg@users.noreply.github.com> | 2020-09-02 04:22:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 20:22:42 -0700 |
commit | a166c2aadbb43f095325637874e7f2a7379d967a (patch) | |
tree | c1dc93d3750f623f170e17231e465fc7a3a6f467 /runtime | |
parent | 4bcf54478ad4ce47908f2eb912b6d98d81e6a78d (diff) | |
download | rneovim-a166c2aadbb43f095325637874e7f2a7379d967a.tar.gz rneovim-a166c2aadbb43f095325637874e7f2a7379d967a.tar.bz2 rneovim-a166c2aadbb43f095325637874e7f2a7379d967a.zip |
eval_call_provider(): free unused return value #12819
Caller can pass discard=true to free the unwanted return value.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/develop.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt index 09c5b7c4ad..aec0178da2 100644 --- a/runtime/doc/develop.txt +++ b/runtime/doc/develop.txt @@ -103,8 +103,10 @@ Examples: The provider framework invokes VimL from C. It is composed of two functions in eval.c: -- eval_call_provider(name, method, arguments): calls provider#{name}#Call - with the method and arguments. +- eval_call_provider(name, method, arguments, discard): calls + provider#{name}#Call with the method and arguments. If discard is true, any + value returned by the provider will be discarded and and empty value be + returned. - eval_has_provider(name): Checks the `g:loaded_{name}_provider` variable which must be set to 2 by the provider script to indicate that it is "enabled and working". Called by |has()| to check if features are available. |