mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Use adjusted_pos when determining the token for tab completing
redirecitons, per #1296
This commit is contained in:
@@ -1981,7 +1981,7 @@ void complete(const wcstring &cmd_with_subcmds, std::vector<completion_t> &comps
|
||||
bool in_redirection = false;
|
||||
if (matching_arg_index == (size_t)(-1))
|
||||
{
|
||||
const parse_node_t *redirection = tree.find_node_matching_source_location(symbol_redirection, pos, plain_statement);
|
||||
const parse_node_t *redirection = tree.find_node_matching_source_location(symbol_redirection, adjusted_pos, plain_statement);
|
||||
in_redirection = (redirection != NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user