From 753885b6c5b9021184daa94d32fd8bf025f1b488 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 24 Aug 2022 16:30:36 +0100 Subject: 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) --- src/evalvars.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/evalvars.c') 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; } -- cgit v1.2.3