paste: make vim.paste() "public"

This commit is contained in:
Justin M. Keyes
2019-08-27 05:19:25 +02:00
parent ed60015266
commit 87389c6a57
6 changed files with 89 additions and 56 deletions

View File

@@ -1243,7 +1243,7 @@ Boolean nvim_paste(String data, Integer phase, Error *err)
Array lines = string_to_array(data);
ADD(args, ARRAY_OBJ(lines));
ADD(args, INTEGER_OBJ(phase));
rv = nvim_execute_lua(STATIC_CSTR_AS_STRING("return vim._paste(...)"), args,
rv = nvim_execute_lua(STATIC_CSTR_AS_STRING("return vim.paste(...)"), args,
err);
if (ERROR_SET(err)) {
draining = true;