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

Removed check for row on button_release method.

Since check for the row is already done on conditional before, it has
little sense for keeping it again in buttons iteration.
This commit is contained in:
2022-02-20 18:15:34 +01:00
parent dc916fca08
commit 6502bfa872

View File

@@ -469,12 +469,9 @@ _on button_release => sub {
return (); return ();
} }
if ($event->{row} == 0) {
for my $button (@{ $self->{tabofs} }) { for my $button (@{ $self->{tabofs} }) {
$button->[2]->($self, $event) $button->[2]->($self, $event)
if $event->{col} >= $button->[0] if $event->{col} >= $button->[0] && $event->{col} < $button->[1];
&& $event->{col} < $button->[1];
}
} }
1 1