Skip to content

Commit 8db0343

Browse files
committed
FIXED: Bindings HIDE option
1 parent ceea2be commit 8db0343

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/App/Asciio/Actions.pm

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ if($self->{USE_BINDINGS_COMPLETION} && ! $self->{CURRENT_ACTIONS}{HIDE})
4848
{
4949
my $shortcut = $_->{SHORTCUTS} ;
5050

51-
! exists $reserved{$shortcut}
52-
&& ! ($self->{CURRENT_ACTIONS}{$shortcut}{OPTIONS}{HIDE})
51+
! exists $reserved{$shortcut} && ! $_->{OPTIONS}{HIDE}
5352
} $self->{ACTIONS_ORDERED}{$self->{CURRENT_ACTIONS}{NAME}}->@* ;
5453

5554
$self->{BINDINGS_COMPLETION} =
@@ -129,7 +128,6 @@ for my $action (@actions)
129128

130129
delete $self->{BINDINGS_COMPLETION} unless $self->{KEEP_BINDINGS_COMPLETION} ;
131130

132-
133131
if(defined $self->{CURRENT_ACTIONS}{$action}{ARGUMENTS})
134132
{
135133
push @results,
@@ -163,11 +161,7 @@ for my $action (@actions)
163161
}
164162
else
165163
{
166-
unless ($self->{KEEP_BINDINGS_COMPLETION})
167-
{
168-
delete $self->{BINDINGS_COMPLETION} ;
169-
}
170-
164+
delete $self->{BINDINGS_COMPLETION} unless $self->{KEEP_BINDINGS_COMPLETION} ;
171165
delete $self->{KEEP_BINDINGS_COMPLETION} ;
172166

173167
if(defined $self->{CURRENT_ACTIONS}{ESCAPE_KEYS} && any { $_ eq $action } $self->{CURRENT_ACTIONS}{ESCAPE_KEYS}->@*)

0 commit comments

Comments
 (0)