Changeset e2f7963


Ignore:
Timestamp:
Oct 3, 2009, 10:06:23 AM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
40bda84
Parents:
2184001
git-author:
Nelson Elhage <nelhage@mit.edu> (10/02/09 20:18:23)
git-committer:
Nelson Elhage <nelhage@mit.edu> (10/03/09 10:06:23)
Message:
Fix missing commands from command completion.

If even a command is shadowed from the BarnOwl:: namespace by an
existing sub, we should include it in the list of all commands that is
used by the completion code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Hooks.pm

    r03e25c5 re2f7963  
    196196    my $package = "BarnOwl";
    197197
     198
     199    if(!contains(\@BarnOwl::all_commands, $command)) {
     200        push @BarnOwl::all_commands, $command;
     201    }
     202
    198203    if($symbol =~ m{^edit:(.+)$}) {
    199204        $symbol = $1;
     
    222227        }
    223228    }
    224 
    225     if(!contains(\@BarnOwl::all_commands, $command)) {
    226         push @BarnOwl::all_commands, $command;
    227     }
    228229}
    229230
Note: See TracChangeset for help on using the changeset viewer.