summaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-04-20 14:28:55 +0200
committerCanop <cano.petrole@gmail.com>2021-04-20 14:28:55 +0200
commit87db0b89a7975216f6810392945a0e57548406e0 (patch)
treee81ddc29ff15e7c4eb61092b98798dda884d80e5 /src/command
parente1bc9547cc0aae6652a62c0ca2187ded9acb03a8 (diff)
staging area filtered with pattern
Diffstat (limited to 'src/command')
-rw-r--r--src/command/completion.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/completion.rs b/src/command/completion.rs
index 82a3eb0..81492e9 100644
--- a/src/command/completion.rs
+++ b/src/command/completion.rs
@@ -166,7 +166,8 @@ impl Completions {
SelInfo::More(stage) => {
// We're looking for the possible completions which
// are valid for all elements of the stage
- let mut lists = stage.paths.iter()
+ let mut lists = stage.paths()
+ .iter()
.filter_map(|path| {
Self::list_for_path(
verb_name,