diff options
author | Matan Kushner <hello@matchai.me> | 2019-04-15 11:40:18 -0400 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-04-15 11:40:40 -0400 |
commit | bca4a7079f0bd663b8cc4584dc92388ce6799c1f (patch) | |
tree | 57891c9b1af75e907300535312bb883ac3185c99 /src/print.rs | |
parent | 71cac5bd1fb09909dde64bbcf3ee4a31fb29be4f (diff) |
Fix bug in path truncation
Paths with 3 components would truncate to 2 despite the truncation length begin set to 3.
Diffstat (limited to 'src/print.rs')
-rw-r--r-- | src/print.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.rs b/src/print.rs index cc1719199..a909e58bc 100644 --- a/src/print.rs +++ b/src/print.rs @@ -21,6 +21,6 @@ pub fn prompt(args: ArgMatches) { .map(|module| modules::handle(module, &args)) // Compute segments .flatten() // Remove segments set to `None` .enumerate() // Turn segment into tuple with index - .map(|(index, segment)| segment.output(index)) // Generate string outputs + .map(|(index, segment)| segment.output_index(index)) // Generate string outputs .for_each(|segment_string| write!(handle, "{}", segment_string).unwrap()); } |