Skip to content

Commit

Permalink
Add missing block to Term::Shell fix
Browse files Browse the repository at this point in the history
(This corresponds to Term::Shell PR posted at
shlomif/Term-Shell#3)

FossilOrigin-Name: 736db8905066a28cf2a7d8b0a25e2f91d66c4c2299c059b9c49212ffcc17bdcf
  • Loading branch information
docelic committed Apr 30, 2019
1 parent 89880e3 commit dbb0341
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shelldap
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,13 @@ sub add_handlers
next unless $hnd =~ /^(run|help|smry|comp|catch|alias)_/o;
my $t = $1;
my $a = substr( $hnd, length($t) + 1 );

# Add on the prefix and suffix if the command is defined
if ( length $a )
{
substr( $a, 0, 0 ) = $o->cmd_prefix;
$a .= $o->cmd_suffix;
}

if ( $o->has_aliases($a) )
{
Expand Down

0 comments on commit dbb0341

Please sign in to comment.