patch 9.0.0253: a symlink to an autoload script results in two entries
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)
diff --git a/src/eval.c b/src/eval.c
index 60daca5..3d6d84c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1039,6 +1039,7 @@
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);