1
0
mirror of https://github.com/gryf/tabbedalt.git synced 2025-12-17 11:30:31 +01:00

Added warning message on passing unknown command.

This commit is contained in:
2022-02-20 18:26:24 +01:00
parent 9a2c813adc
commit d9aec64298

View File

@@ -619,10 +619,14 @@ sub command {
my ($self, $tab, $params) = @_;
(my @args) = split(':', $params);
my $command = shift @args;
$self->$command($params);
eval {
$self->$command($params);
} or do {
warn "Unknown tabbedalt action: $command\n";
}
}
sub _rename_tab_key_press {
my ($self, $event, $keysym, $str) = @_;
my $tab = $self->{cur};