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 /src/nvim/ops.c | |
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 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index d31328219f..7e0cd737ca 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -5919,7 +5919,7 @@ static bool get_clipboard(int name, yankreg_T **target, bool quiet) const char regname = (char)name; tv_list_append_string(args, ®name, 1); - typval_T result = eval_call_provider("clipboard", "get", args); + typval_T result = eval_call_provider("clipboard", "get", args, false); if (result.v_type != VAR_LIST) { if (result.v_type == VAR_NUMBER && result.vval.v_number == 0) { @@ -6067,7 +6067,7 @@ static void set_clipboard(int name, yankreg_T *reg) tv_list_append_string(args, ®type, 1); // -V614 tv_list_append_string(args, ((char[]) { (char)name }), 1); - (void)eval_call_provider("clipboard", "set", args); + (void)eval_call_provider("clipboard", "set", args, true); } /// Avoid slow things (clipboard) during batch operations (while/for-loops). |