diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-25 08:26:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 08:26:49 +0800 |
commit | c32fcd1ed527236e52cfd78033685e713ec36d75 (patch) | |
tree | 1749830896b6c1cd31dbe8ea762a5d650f287247 /src/nvim/eval.c | |
parent | 7f084770c23855083776b0598f2f54bb59a06875 (diff) | |
download | rneovim-c32fcd1ed527236e52cfd78033685e713ec36d75.tar.gz rneovim-c32fcd1ed527236e52cfd78033685e713ec36d75.tar.bz2 rneovim-c32fcd1ed527236e52cfd78033685e713ec36d75.zip |
refactor(source): remove unnecessary concatenation with Lua (#28499)
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 213948a028..70cf2b973d 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7904,8 +7904,8 @@ hashtab_T *find_var_ht_dict(const char *name, const size_t name_len, const char .channel_id = LUA_INTERNAL_CALL, }; bool should_free; - // should_free is ignored as script_sctx will be resolved to a fnmae - // & new_script_item will consume it. + // should_free is ignored as script_ctx will be resolved to a fname + // and new_script_item() will consume it. char *sc_name = get_scriptname(last_set, &should_free); new_script_item(sc_name, ¤t_sctx.sc_sid); } |