diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-07-09 14:48:09 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-07-19 12:38:37 +0200 |
commit | f87c8245133dd8116a9bab2d2e89f9b26967c7a8 (patch) | |
tree | 48a289574b8280cbcf743dd9a9b0429859570200 /src/nvim/api/vim.c | |
parent | 0b63f5afad852d077bb430ad9c9ba4301980d500 (diff) | |
download | rneovim-f87c8245133dd8116a9bab2d2e89f9b26967c7a8.tar.gz rneovim-f87c8245133dd8116a9bab2d2e89f9b26967c7a8.tar.bz2 rneovim-f87c8245133dd8116a9bab2d2e89f9b26967c7a8.zip |
fix(rpc): break nvim_error_event feedback loop between two nvim instances
In case nvim A sends nvim_error_event to nvim B, it would
respond with another nvim_error_event due to unknown
request name. Fix this by adding dummy request handler for now.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 56516b2ac7..5d941890db 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -2256,3 +2256,11 @@ Dictionary nvim_eval_statusline(String str, Dict(eval_statusline) *opts, Error * return result; } + +void nvim_error_event(uint64_t channel_id, Integer lvl, String data) + FUNC_API_REMOTE_ONLY +{ + // TODO(bfredl): consider printing message to user, as will be relevant + // if we fork nvim processes as async workers + ELOG("async error on channel %" PRId64 ": %s", channel_id, data.size ? data.data : ""); +} |