Changeset 7940ac2


Ignore:
Timestamp:
Aug 1, 2009, 9:23:04 PM (12 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
bc5e856
Parents:
28cf94b
git-author:
David Benjamin <davidben@mit.edu> (08/01/09 21:20:54)
git-committer:
David Benjamin <davidben@mit.edu> (08/01/09 21:23:04)
Message:
Simplify complete_help and make correct

Don't use complete_flags for complete_help. It doesn't need it.

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Complete/Client.pm

    r28cf94b r7940ac2  
    5454sub complete_help {
    5555    my $ctx = shift;
    56     return complete_flags($ctx,
    57         [qw()],
    58         {
    59         },
    60         \&complete_command
    61        );
     56    if($ctx->word == 1) {
     57        return complete_command();
     58    }
    6259}
    6360
Note: See TracChangeset for help on using the changeset viewer.