aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-25 08:26:49 +0800
committerGitHub <noreply@github.com>2024-04-25 08:26:49 +0800
commitc32fcd1ed527236e52cfd78033685e713ec36d75 (patch)
tree1749830896b6c1cd31dbe8ea762a5d650f287247 /src/nvim/eval.c
parent7f084770c23855083776b0598f2f54bb59a06875 (diff)
downloadrneovim-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.c4
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, &current_sctx.sc_sid);
}