diff options
author | Canop <cano.petrole@gmail.com> | 2022-06-19 20:14:12 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-06-19 20:14:12 +0200 |
commit | 8ef4ed54cea893b8e77b5e41a349ba77ca56937a (patch) | |
tree | 03dbae01285b1ba4272f68a4c09085396f573d0c /src/command | |
parent | 0a34abdf7e1fa4aaaf2da641b3083dd0b015f2da (diff) |
[WIP] introduce verb arg definition
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/completion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/completion.rs b/src/command/completion.rs index 3964a92..11bdcee 100644 --- a/src/command/completion.rs +++ b/src/command/completion.rs @@ -110,7 +110,7 @@ impl Completions { con: &AppContext, ) -> io::Result<Vec<String>> { let anchor = match con.verb_store.search_sel_info(verb_name, sel_info) { - PrefixSearchResult::Match(_, verb) => verb.get_arg_anchor(), + PrefixSearchResult::Match(_, verb) => verb.get_unique_arg_anchor(), _ => PathAnchor::Unspecified, }; let (_, parent_part, child_part) = regex_captures!(r"^(.*?)([^/]*)$", arg).unwrap(); |