diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-20 23:06:22 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-27 00:11:28 +0300 |
commit | 5c1b9a0d2af86461f56f0d27ed275456921f6187 (patch) | |
tree | f1516db36a75c88d6c2a2c87a586ed42c6b01563 /scripts/genmsgpack.lua | |
parent | d932693d5147ac12d181e0810a20bdcbffab2818 (diff) | |
download | rneovim-5c1b9a0d2af86461f56f0d27ed275456921f6187.tar.gz rneovim-5c1b9a0d2af86461f56f0d27ed275456921f6187.tar.bz2 rneovim-5c1b9a0d2af86461f56f0d27ed275456921f6187.zip |
api: Reserve more numbers for internal calls
Reasoning; currently INTERNAL_CALL is mostly used to determine whether it is
needed to deal with NL-used-as-NUL problem. This code is useful for nvim_… API
calls done from VimL, but not for API calls done from lua, yet lua needs to
supply something as channel_id.
Diffstat (limited to 'scripts/genmsgpack.lua')
-rw-r--r-- | scripts/genmsgpack.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genmsgpack.lua b/scripts/genmsgpack.lua index d47d637548..aed56b29eb 100644 --- a/scripts/genmsgpack.lua +++ b/scripts/genmsgpack.lua @@ -422,7 +422,7 @@ local function process_function(fn) cparams = cparam .. ', ' .. cparams end if fn.receives_channel_id then - cparams = 'INTERNAL_CALL, ' .. cparams + cparams = 'LUA_INTERNAL_CALL, ' .. cparams end if fn.can_fail then cparams = cparams .. '&err' |