summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Language/TECO.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Language/TECO.pm b/lib/Language/TECO.pm
index 1621349..779656d 100644
--- a/lib/Language/TECO.pm
+++ b/lib/Language/TECO.pm
@@ -242,7 +242,9 @@ sub execute {
elsif ($negate) {
$self->negate(1);
}
- $command = $self->try_cmd($command);
+ my $new_command = $self->try_cmd($command);
+ substr($new_command, 0, 1, '') if $new_command eq $command;
+ $command = $new_command;
}
return $self->ret;