summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-24 16:30:36 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-24 16:30:36 +0100
commit753885b6c5b9021184daa94d32fd8bf025f1b488 (patch)
treed0d9e106e111e6d1bf3f200ca83a4b0a3fad7ae0 /src/eval.c
parentf5240b96f721b08d703340ff0b2e67b79fb8b821 (diff)
downloadvim-git-753885b6c5b9021184daa94d32fd8bf025f1b488.tar.gz
patch 9.0.0253: a symlink to an autoload script results in two entriesv9.0.0253
Problem: A symlink to an autoload script results in two entries in the list of scripts, items expected in one are actually in the other. Solution: Have one script item refer to the actually sourced one. (closes #10960)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 60daca51c..3d6d84c2b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1039,6 +1039,7 @@ get_lval(
ufunc_T *ufunc;
type_T *type;
+ import_check_sourced_sid(&import->imp_sid);
lp->ll_sid = import->imp_sid;
lp->ll_name = skipwhite(p + 1);
p = find_name_end(lp->ll_name, NULL, NULL, fne_flags);