summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-27 06:55:23 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-27 06:55:23 -0700
commitb47025c3edc0c7a191398d9ceac089011fc80ea1 (patch)
tree942b74d65781522603a00feafc1b8d8c065a51ea /match.c
parentf6d726cd185524fef00572b2e18a186926222b29 (diff)
downloadtxr-b47025c3edc0c7a191398d9ceac089011fc80ea1.tar.gz
txr-b47025c3edc0c7a191398d9ceac089011fc80ea1.tar.bz2
txr-b47025c3edc0c7a191398d9ceac089011fc80ea1.zip
Change criterion for *load-path*-relative loading.
* eval.c (load): Do not resolve all relative paths relative to the current *load-path*, only pure relative ones. * match.c (v_load): Likewise. * txr.1: Update doc for @(load)/@(include) and load function.
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index f1c1dba4..85e44b82 100644
--- a/match.c
+++ b/match.c
@@ -3878,7 +3878,7 @@ static val v_load(match_files_ctx *c)
sem_error(specline, lit("~s: null string path given"), sym, nao);
{
- val path = if3(abs_path_p(target),
+ val path = if3(!pure_rel_path_p(target),
target,
cat_str(nappend2(sub_list(split_str(parent, lit("/")),
zero, negone),