Correctly complete redirections. Fixes #1296

This commit is contained in:
ridiculousfish
2014-05-02 01:22:39 -07:00
parent 0c4819131c
commit 16b982958b
2 changed files with 34 additions and 20 deletions

View File

@@ -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 */