[Bps-public-commit] Prophet branch, master, updated. 0.73-24-ge94682f

sartak at bestpractical.com sartak at bestpractical.com
Wed Dec 23 16:11:39 EST 2009


The branch, master has been updated
       via  e94682ffb37d848cdb21735eac373a1fd3b0d6fd (commit)
      from  b36fbe5553b75f705124c1e89b8334f7bf4f9695 (commit)

Summary of changes:
 lib/Prophet/CLI/Command/Shell.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit e94682ffb37d848cdb21735eac373a1fd3b0d6fd
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Dec 23 16:11:32 2009 -0500

    Use $line not $text

diff --git a/lib/Prophet/CLI/Command/Shell.pm b/lib/Prophet/CLI/Command/Shell.pm
index a14c188..90e201a 100644
--- a/lib/Prophet/CLI/Command/Shell.pm
+++ b/lib/Prophet/CLI/Command/Shell.pm
@@ -117,10 +117,10 @@ sub _complete {
     substr($line, $end) = '';
 
     my $dispatcher = $self->cli->dispatcher_class->new(cli => $self->cli);
-    my @matches = $dispatcher->complete($text);
+    my @matches = $dispatcher->complete($line);
 
     # iterate through the completions
-    return $self->term->completion_matches($text, sub {
+    return $self->term->completion_matches($line, sub {
         my ($text, $state) = @_;
 
         if (!$state) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list