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:
@@ -469,12 +469,9 @@ _on button_release => sub {
|
||||
return ();
|
||||
}
|
||||
|
||||
if ($event->{row} == 0) {
|
||||
for my $button (@{ $self->{tabofs} }) {
|
||||
$button->[2]->($self, $event)
|
||||
if $event->{col} >= $button->[0]
|
||||
&& $event->{col} < $button->[1];
|
||||
}
|
||||
if $event->{col} >= $button->[0] && $event->{col} < $button->[1];
|
||||
}
|
||||
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user