diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-05 18:42:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 18:42:00 +0200 |
commit | d4f47fe17d5168304b73df26a5d8fe3b11832128 (patch) | |
tree | de2c438ed9b0936795ae4f99e9a6e4df2c6ffe2f /src/nvim/api/autocmd.c | |
parent | 3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d (diff) | |
parent | 9a671e6a24243a5ff2879599d91ab5aec8b4e77d (diff) | |
download | rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.tar.gz rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.tar.bz2 rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.zip |
Merge pull request #18416 from dundargoc/refactor/remove-char_u
refactor/remove char u
Diffstat (limited to 'src/nvim/api/autocmd.c')
-rw-r--r-- | src/nvim/api/autocmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/autocmd.c b/src/nvim/api/autocmd.c index 010c03e505..6f262ebfa0 100644 --- a/src/nvim/api/autocmd.c +++ b/src/nvim/api/autocmd.c @@ -460,7 +460,7 @@ Integer nvim_create_autocmd(uint64_t channel_id, Object event, Dict(create_autoc cb.data.luaref = api_new_luaref(callback->data.luaref); } else if (callback->type == kObjectTypeString) { cb.type = kCallbackFuncref; - cb.data.funcref = (char_u *)string_to_cstr(callback->data.string); + cb.data.funcref = string_to_cstr(callback->data.string); } else { api_set_error(err, kErrorTypeException, |