diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-24 16:30:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-24 16:30:36 +0100 |
commit | 753885b6c5b9021184daa94d32fd8bf025f1b488 (patch) | |
tree | d0d9e106e111e6d1bf3f200ca83a4b0a3fad7ae0 /src/evalvars.c | |
parent | f5240b96f721b08d703340ff0b2e67b79fb8b821 (diff) |
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/evalvars.c')
-rw-r--r-- | src/evalvars.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index 0b51ce1da0..71cab0a308 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2953,6 +2953,7 @@ eval_variable( { if (rettv != NULL) { + // special value that is used in handle_subscript() rettv->v_type = VAR_ANY; rettv->vval.v_number = sid != 0 ? sid : import->imp_sid; } |