diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-27 17:39:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-27 17:39:25 +0800 |
commit | 746139fa1e80bbf0baa63307a0dfe2b45ce3fbd6 (patch) | |
tree | b5cee468e0dee65d00ad5a93c4295e8ffd09d32d | |
parent | f86864f22feff1440fd087ffdaea1363bbd6ec8b (diff) | |
download | rneovim-746139fa1e80bbf0baa63307a0dfe2b45ce3fbd6.tar.gz rneovim-746139fa1e80bbf0baa63307a0dfe2b45ce3fbd6.tar.bz2 rneovim-746139fa1e80bbf0baa63307a0dfe2b45ce3fbd6.zip |
refactor(do_source): remove duplicate assignments (#32654)
The code above have already set sc_lnum to 0.
-rw-r--r-- | src/nvim/runtime.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c index b02977e564..861a44cc05 100644 --- a/src/nvim/runtime.c +++ b/src/nvim/runtime.c @@ -2263,11 +2263,8 @@ int do_source(char *fname, int check_other, int is_vimrc, int *ret_sid) cookie.conv.vc_type = CONV_NONE; // no conversion if (si->sn_lua) { - const sctx_T current_sctx_backup = current_sctx; - current_sctx.sc_lnum = 0; // Source the file as lua nlua_exec_file(fname_exp); - current_sctx = current_sctx_backup; } else { // Read the first line so we can check for a UTF-8 BOM. firstline = (uint8_t *)getsourceline(0, (void *)&cookie, 0, true); |