diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-08-05 14:08:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 14:08:28 +0200 |
commit | fd1d84c705128372dc25e3a833e9a1dc6b9e81e0 (patch) | |
tree | cd42ac3b29c6b2ac214bd81c3d11ece9dbd406c9 /src/nvim/eval/encode.c | |
parent | c7b100630ae65b904a722c57f1fde1d9669cc643 (diff) | |
parent | 1247684ae14e83c5b742be390de8dee00fd4e241 (diff) | |
download | rneovim-fd1d84c705128372dc25e3a833e9a1dc6b9e81e0.tar.gz rneovim-fd1d84c705128372dc25e3a833e9a1dc6b9e81e0.tar.bz2 rneovim-fd1d84c705128372dc25e3a833e9a1dc6b9e81e0.zip |
Merge pull request #29540 from bfredl/neoshada
refactor(shada): rework msgpack decoding without msgpack-c
Diffstat (limited to 'src/nvim/eval/encode.c')
-rw-r--r-- | src/nvim/eval/encode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c index 92c5aaeffd..79f334601d 100644 --- a/src/nvim/eval/encode.c +++ b/src/nvim/eval/encode.c @@ -55,11 +55,11 @@ int encode_blob_write(void *const data, const char *const buf, const size_t len) } /// Msgpack callback for writing to readfile()-style list -int encode_list_write(void *const data, const char *const buf, const size_t len) +void encode_list_write(void *const data, const char *const buf, const size_t len) FUNC_ATTR_NONNULL_ARG(1) { if (len == 0) { - return 0; + return; } list_T *const list = (list_T *)data; const char *const end = buf + len; @@ -97,7 +97,6 @@ int encode_list_write(void *const data, const char *const buf, const size_t len) if (line_end == end) { tv_list_append_allocated_string(list, NULL); } - return 0; } /// Abort conversion to string after a recursion error. |