[Bps-public-commit] Path-Dispatcher branch, master, updated. 3e701107a681a52696a7159f61c1f81520b7c5ac
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jan 7 15:21:39 EST 2010
The branch, master has been updated
via 3e701107a681a52696a7159f61c1f81520b7c5ac (commit)
from 5769e3d9fc1296729990c24779567ca1c2067df5 (commit)
Summary of changes:
lib/Path/Dispatcher/Rule/Sequence.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 3e701107a681a52696a7159f61c1f81520b7c5ac
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Jan 7 15:21:27 2010 -0500
We want to return the whole path for completion not just the last word
diff --git a/lib/Path/Dispatcher/Rule/Sequence.pm b/lib/Path/Dispatcher/Rule/Sequence.pm
index 15d6249..21ffc32 100644
--- a/lib/Path/Dispatcher/Rule/Sequence.pm
+++ b/lib/Path/Dispatcher/Rule/Sequence.pm
@@ -56,7 +56,8 @@ sub complete {
my $rule = shift @$rules;
my $token = @$tokens ? shift @$tokens : '';
- return $rule->complete($path->clone_path($token));
+ return map { $self->untokenize(@$matched, $_) }
+ $rule->complete($path->clone_path($token));
}
sub tokenize {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list