diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-02 01:22:39 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-02 01:22:39 -0700 |
commit | 16b982958bdd648098fd433c5aec47158b7bc383 (patch) | |
tree | e386ffc71541ab4cb39950cb2145c33582990846 /parse_tree.cpp | |
parent | 0c4819131c3c735a90a81cf774749b9b020f3a5d (diff) |
Correctly complete redirections. Fixes #1296
Diffstat (limited to 'parse_tree.cpp')
-rw-r--r-- | parse_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_tree.cpp b/parse_tree.cpp index fe1e2527..4825c6eb 100644 --- a/parse_tree.cpp +++ b/parse_tree.cpp @@ -1351,7 +1351,7 @@ const parse_node_t *parse_node_tree_t::find_node_matching_source_location(parse_ continue; /* If a parent is given, it must be an ancestor */ - if (parent != NULL && node_has_ancestor(*this, node, *parent)) + if (parent != NULL && ! node_has_ancestor(*this, node, *parent)) continue; /* Found it */ |