mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Correctly complete redirections. Fixes #1296
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user